File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 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)
223223 case AFIO_USART2_DISABLE :
224224 __HAL_AFIO_REMAP_USART2_DISABLE ();
225225 break ;
226+ #if defined(AFIO_MAPR_USART3_REMAP )
226227 case AFIO_USART3_ENABLE :
227228 __HAL_AFIO_REMAP_USART3_ENABLE ();
228229 break ;
@@ -232,6 +233,7 @@ static inline void pin_SetF1AFPin(uint32_t afnum)
232233 case AFIO_USART3_DISABLE :
233234 __HAL_AFIO_REMAP_USART3_DISABLE ();
234235 break ;
236+ #endif
235237 case AFIO_TIM1_ENABLE :
236238 __HAL_AFIO_REMAP_TIM1_ENABLE ();
237239 break ;
@@ -262,12 +264,14 @@ static inline void pin_SetF1AFPin(uint32_t afnum)
262264 case AFIO_TIM3_DISABLE :
263265 __HAL_AFIO_REMAP_TIM3_DISABLE ();
264266 break ;
267+ #if defined(AFIO_MAPR_TIM4_REMAP )
265268 case AFIO_TIM4_ENABLE :
266269 __HAL_AFIO_REMAP_TIM4_ENABLE ();
267270 break ;
268271 case AFIO_TIM4_DISABLE :
269272 __HAL_AFIO_REMAP_TIM4_DISABLE ();
270273 break ;
274+ #endif
271275#if defined(AFIO_MAPR_CAN_REMAP1 )
272276 case AFIO_CAN1_1 :
273277 __HAL_AFIO_REMAP_CAN1_1 ();
You can’t perform that action at this time.
0 commit comments