on test and not completed based on nucleo_hello_encoder library

Dependencies:   mbed

Fork of Nucleo_Hello_Encoder by David Lowe

Revision:
2:70f92ce7d983
Parent:
1:3d2fffa6e19f
--- a/Encoder/CounterMspInitF4.cpp	Tue Sep 29 06:42:15 2015 +0000
+++ b/Encoder/CounterMspInitF4.cpp	Tue Sep 29 06:50:08 2015 +0000
@@ -8,6 +8,7 @@
  * Encoder A&B outputs connected directly to GPIOs.
  *
  */
+ // STM32 F4 HAL https://github.com/mbedmicro/mbed/blob/03fff9249b0ca5efb2e12506ce8fb3e6cc258d9d/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.h
 
 #ifdef TARGET_STM32F4
 void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim)
@@ -17,7 +18,7 @@
     if (htim->Instance == TIM1) { //PA8 PA9 = Nucleo D7 D8, poss PB0 PB1 usable too (complementary?)
         __TIM1_CLK_ENABLE();
         __GPIOA_CLK_ENABLE();
-        GPIO_InitStruct.Pin = GPIO_PIN_8;// | GPIO_PIN_9;
+        GPIO_InitStruct.Pin = GPIO_PIN_8;// | GPIO_PIN_9;   //test one pin for now without direction
         GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
         GPIO_InitStruct.Pull = GPIO_PULLDOWN;
         GPIO_InitStruct.Speed = GPIO_SPEED_HIGH;