Separated perMain() for ARM and other platforms
This commit is contained in:
@@ -339,7 +339,13 @@ void *main_thread(void *)
|
||||
s_current_protocol[0] = 0;
|
||||
|
||||
while (main_thread_running) {
|
||||
#if defined(CPUARM)
|
||||
doMixerCalculations();
|
||||
checkTrims();
|
||||
perMainArm();
|
||||
#else
|
||||
perMain();
|
||||
#endif
|
||||
sleep(10/*ms*/);
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,6 @@ extern void rxPdcUsart( void (*pChProcess)(uint8_t x) );
|
||||
#define asm(x)
|
||||
|
||||
#if defined(CPUARM)
|
||||
extern volatile uint32_t Tenms;
|
||||
extern uint32_t Master_frequency;
|
||||
#define NVIC_EnableIRQ(x)
|
||||
#define NVIC_DisableIRQ(x)
|
||||
|
||||
Reference in New Issue
Block a user