File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,16 @@ DEV_UART_PTR uart_get_dev(int32_t uart_id){
143143 return dw_uart_get_dev (uart_id );
144144 break ;
145145
146- #if USE_DFSS_UART_0
146+ #if ( USE_DFSS_UART_0 )
147147 case DFSS_UART_0_ID :
148148#endif
149- #if USE_DFSS_UART_1
149+ #if ( USE_DFSS_UART_1 )
150150 case DFSS_UART_1_ID :
151151#endif
152- #if USE_DFSS_UART_2
152+ #if ( USE_DFSS_UART_2 )
153153 case DFSS_UART_2_ID :
154154#endif
155- #if USE_DFSS_UART_3
155+ #if ( USE_DFSS_UART_3 )
156156 case DFSS_UART_3_ID :
157157#endif
158158 return dfss_uart_get_dev (uart_id );
@@ -167,13 +167,13 @@ DEV_UART_PTR uart_get_dev(int32_t uart_id){
167167DEV_IIC_PTR iic_get_dev (int32_t iic_id )
168168{
169169 switch (iic_id ) {
170- #if USE_DFSS_IIC_0
170+ #if ( USE_DFSS_IIC_0 )
171171 case DFSS_IIC_0_ID :
172172#endif
173- #if USE_DFSS_IIC_1
173+ #if ( USE_DFSS_IIC_1 )
174174 case DFSS_IIC_1_ID :
175175#endif
176- #if USE_DFSS_IIC_2
176+ #if ( USE_DFSS_IIC_2 )
177177 case DFSS_IIC_2_ID :
178178#endif
179179 return dfss_iic_get_dev (iic_id );
@@ -193,6 +193,7 @@ DEV_I2S_PTR i2s_get_dev(int32_t i2s_id)
193193#if (USE_DFSS_I2S_1 )
194194 case DFSS_I2S_1_ID :
195195#endif
196+ case DFSS_NO_I2S :
196197 return dfss_i2s_get_dev (i2s_id );
197198 break ;
198199 default :
Original file line number Diff line number Diff line change 3434
3535#define DFSS_I2S_0_ID 0 /*!< I2S 0 ID macro */
3636#define DFSS_I2S_1_ID 1 /*!< I2S 1 ID macro */
37+ #define DFSS_NO_I2S (-1)/* in case no ID is in use, dfss_i2s_get_dev() should handle this value*/
3738
3839#ifdef IO_I2S_TX_MST0_PRESENT
3940#define USE_DFSS_I2S_0 1 /*!< enable use DFSS I2S 0 as TX */
You can’t perform that action at this time.
0 commit comments