hi
Fork of Nucleo_Hello_Encoder by
Diff: Encoder/EncoderMspInitF4.cpp
- Revision:
- 2:8349e61b6152
- Parent:
- 1:cd7b42c99ff8
diff -r cd7b42c99ff8 -r 8349e61b6152 Encoder/EncoderMspInitF4.cpp --- a/Encoder/EncoderMspInitF4.cpp Sun Oct 04 11:58:58 2015 +0000 +++ b/Encoder/EncoderMspInitF4.cpp Thu Sep 01 06:37:22 2016 +0000 @@ -42,6 +42,7 @@ GPIO_InitStruct.Alternate = GPIO_AF1_TIM1; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); } + else if (htim->Instance == TIM2) { //PA0 PA1 = Nucleo A0 A1 __TIM2_CLK_ENABLE(); __GPIOA_CLK_ENABLE();