File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ static inline void pin_SetF1AFPin(uint32_t afnum)
223
223
case AFIO_USART2_DISABLE :
224
224
__HAL_AFIO_REMAP_USART2_DISABLE ();
225
225
break ;
226
+ #if defined(AFIO_MAPR_USART3_REMAP )
226
227
case AFIO_USART3_ENABLE :
227
228
__HAL_AFIO_REMAP_USART3_ENABLE ();
228
229
break ;
@@ -232,6 +233,7 @@ static inline void pin_SetF1AFPin(uint32_t afnum)
232
233
case AFIO_USART3_DISABLE :
233
234
__HAL_AFIO_REMAP_USART3_DISABLE ();
234
235
break ;
236
+ #endif
235
237
case AFIO_TIM1_ENABLE :
236
238
__HAL_AFIO_REMAP_TIM1_ENABLE ();
237
239
break ;
@@ -262,12 +264,14 @@ static inline void pin_SetF1AFPin(uint32_t afnum)
262
264
case AFIO_TIM3_DISABLE :
263
265
__HAL_AFIO_REMAP_TIM3_DISABLE ();
264
266
break ;
267
+ #if defined(AFIO_MAPR_TIM4_REMAP )
265
268
case AFIO_TIM4_ENABLE :
266
269
__HAL_AFIO_REMAP_TIM4_ENABLE ();
267
270
break ;
268
271
case AFIO_TIM4_DISABLE :
269
272
__HAL_AFIO_REMAP_TIM4_DISABLE ();
270
273
break ;
274
+ #endif
271
275
#if defined(AFIO_MAPR_CAN_REMAP1 )
272
276
case AFIO_CAN1_1 :
273
277
__HAL_AFIO_REMAP_CAN1_1 ();
You can’t perform that action at this time.
0 commit comments