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

Sky9x simulator should now be OK

This commit is contained in:
Bertrand Songis 2016-03-14 18:55:56 +01:00
parent 88ca7fcc68
commit b6e8b73589
7 changed files with 53 additions and 38 deletions

View file

@ -946,9 +946,12 @@ extern uint16_t lastMixerDuration;
#define RESET_THR_TRACE() s_timeCum16ThrP = s_timeCumThr = 0
#endif
#if defined(CPUSTM32)
#if defined(SIMU)
uint16_t getTmr2MHz();
uint16_t getTmr16KHz();
#elif defined(CPUSTM32)
static inline uint16_t getTmr2MHz() { return TIMER_2MHz_TIMER->CNT; }
#elif defined(CPUARM)
#elif defined(PCBSKY9X)
static inline uint16_t getTmr2MHz() { return TC1->TC_CHANNEL[0].TC_CV; }
#else
uint16_t getTmr16KHz();