1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

[Taranis] Hardcoded timer removed

This commit is contained in:
bsongis 2015-07-09 22:35:18 +02:00
parent 1ebce293c9
commit dd3eaf4ec9

View file

@ -924,7 +924,7 @@ extern uint16_t lastMixerDuration;
#endif
#if defined(CPUSTM32)
static inline uint16_t getTmr2MHz() { return TIM7->CNT; }
static inline uint16_t getTmr2MHz() { return TIMER_2MHz_TIMER->CNT; }
#elif defined(CPUARM)
static inline uint16_t getTmr2MHz() { return TC1->TC_CHANNEL[0].TC_CV; }
#else