Haptic support

This commit is contained in:
Andre Bernet
2014-04-23 13:18:17 +02:00
parent 2ff45dd73c
commit faa6cd7a3c
11 changed files with 117 additions and 21 deletions
@@ -130,6 +130,10 @@ void interrupt5ms()
AUDIO_HEARTBEAT();
#if defined(HAPTIC)
HAPTIC_HEARTBEAT();
#endif
if ( ++pre_scale >= 2 ) {
pre_scale = 0 ;
per10ms();
@@ -155,6 +159,10 @@ void boardInit()
eepromInit();
sportInit();
usbInit();
#if defined(HAPTIC)
hapticInit();
#endif
#if defined(DEBUG)
DBGMCU_APB1PeriphConfig(DBGMCU_IWDG_STOP|DBGMCU_TIM1_STOP|DBGMCU_TIM2_STOP|DBGMCU_TIM3_STOP|DBGMCU_TIM6_STOP|DBGMCU_TIM8_STOP|DBGMCU_TIM10_STOP|DBGMCU_TIM13_STOP|DBGMCU_TIM14_STOP, ENABLE);