us_ticker is not yet initialised at this stage

pull/7122/head
Wilfried Chauveau 2018-05-30 14:20:32 +01:00 committed by adbridge
parent 5c8236e78b
commit 998b4b8f0a
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ void ublox_mdm_init(void)
// Can't use wait_ms() as RTOS isn't initialised yet // Can't use wait_ms() as RTOS isn't initialised yet
//wait_ms(50); // when USB cable is inserted the interface chip issues //wait_ms(50); // when USB cable is inserted the interface chip issues
// Here's the code from the non-RTOS version // Here's the code from the non-RTOS version
us_ticker_init();
uint32_t start = us_ticker_read(); uint32_t start = us_ticker_read();
while ((us_ticker_read() - start) < 50000); while ((us_ticker_read() - start) < 50000);
} }