32bits encoder counter using 16bits TIM and a 32bits software counter
Dependents: Asserv_mot Asserv_mot
Fork of Encoder_Nucleo_32_bits by
Diff: EncoderMspInitF3.cpp
- Revision:
- 7:c57c8fe63263
- Parent:
- 0:ebd170807e11
diff -r 11dea4c204ba -r c57c8fe63263 EncoderMspInitF3.cpp --- a/EncoderMspInitF3.cpp Fri Oct 14 13:38:48 2016 +0000 +++ b/EncoderMspInitF3.cpp Wed Apr 19 17:40:00 2017 +0000 @@ -55,7 +55,7 @@ } #endif #if defined TARGET_STM32F334R8 - else if (htim->Instance == TIM3) { //PB4 PB5 = Nucleo D5 D4 + else if (htim->Instance == TIM3) { //PB7 PB5 = Nucleo D5 D4 __TIM3_CLK_ENABLE(); __GPIOB_CLK_ENABLE(); GPIO_InitStruct.Pin = GPIO_PIN_4 | GPIO_PIN_5;