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){
143
143
return dw_uart_get_dev (uart_id );
144
144
break ;
145
145
146
- #if USE_DFSS_UART_0
146
+ #if ( USE_DFSS_UART_0 )
147
147
case DFSS_UART_0_ID :
148
148
#endif
149
- #if USE_DFSS_UART_1
149
+ #if ( USE_DFSS_UART_1 )
150
150
case DFSS_UART_1_ID :
151
151
#endif
152
- #if USE_DFSS_UART_2
152
+ #if ( USE_DFSS_UART_2 )
153
153
case DFSS_UART_2_ID :
154
154
#endif
155
- #if USE_DFSS_UART_3
155
+ #if ( USE_DFSS_UART_3 )
156
156
case DFSS_UART_3_ID :
157
157
#endif
158
158
return dfss_uart_get_dev (uart_id );
@@ -167,13 +167,13 @@ DEV_UART_PTR uart_get_dev(int32_t uart_id){
167
167
DEV_IIC_PTR iic_get_dev (int32_t iic_id )
168
168
{
169
169
switch (iic_id ) {
170
- #if USE_DFSS_IIC_0
170
+ #if ( USE_DFSS_IIC_0 )
171
171
case DFSS_IIC_0_ID :
172
172
#endif
173
- #if USE_DFSS_IIC_1
173
+ #if ( USE_DFSS_IIC_1 )
174
174
case DFSS_IIC_1_ID :
175
175
#endif
176
- #if USE_DFSS_IIC_2
176
+ #if ( USE_DFSS_IIC_2 )
177
177
case DFSS_IIC_2_ID :
178
178
#endif
179
179
return dfss_iic_get_dev (iic_id );
@@ -193,6 +193,7 @@ DEV_I2S_PTR i2s_get_dev(int32_t i2s_id)
193
193
#if (USE_DFSS_I2S_1 )
194
194
case DFSS_I2S_1_ID :
195
195
#endif
196
+ case DFSS_NO_I2S :
196
197
return dfss_i2s_get_dev (i2s_id );
197
198
break ;
198
199
default :
Original file line number Diff line number Diff line change 34
34
35
35
#define DFSS_I2S_0_ID 0 /*!< I2S 0 ID macro */
36
36
#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*/
37
38
38
39
#ifdef IO_I2S_TX_MST0_PRESENT
39
40
#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