Fix compile errors with SDCC
Intermingled declarations and code are not yet implemented in sdcc.
This commit is contained in:
parent
9217c8b321
commit
e6819effef
2 changed files with 15 additions and 8 deletions
|
@ -358,11 +358,14 @@ powercycle_turn_radio_on(void)
|
|||
static char
|
||||
powercycle(struct rtimer *t, void *ptr)
|
||||
{
|
||||
#if SYNC_CYCLE_STARTS
|
||||
static volatile rtimer_clock_t sync_cycle_start;
|
||||
static volatile uint8_t sync_cycle_phase;
|
||||
#endif
|
||||
|
||||
PT_BEGIN(&pt);
|
||||
|
||||
#if SYNC_CYCLE_STARTS
|
||||
static volatile rtimer_clock_t sync_cycle_start;
|
||||
static volatile uint8_t sync_cycle_phase;
|
||||
sync_cycle_start = RTIMER_NOW();
|
||||
#else
|
||||
cycle_start = RTIMER_NOW();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue