mirror of https://github.com/ARMmbed/mbed-os.git
us_ticker is not yet initialised at this stage
parent
24cebbaec3
commit
1c7b91aa8c
|
@ -42,6 +42,7 @@ void ublox_mdm_init(void)
|
|||
// Can't use wait_ms() as RTOS isn't initialised yet
|
||||
//wait_ms(50); // when USB cable is inserted the interface chip issues
|
||||
// Here's the code from the non-RTOS version
|
||||
us_ticker_init();
|
||||
uint32_t start = us_ticker_read();
|
||||
while ((us_ticker_read() - start) < 50000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue