update nrf52 hal millis
This commit is contained in:
@@ -66,6 +66,8 @@
|
||||
<file file_name="../../../../hw/bsp/pca10056/board_pca10056.c" />
|
||||
<file file_name="../../../../hw/bsp/pca10056/board_pca10056.h" />
|
||||
</folder>
|
||||
<file file_name="../../../../hw/bsp/ansi_escape.h" />
|
||||
<file file_name="../../../../hw/bsp/board.h" />
|
||||
</folder>
|
||||
<folder Name="mcu">
|
||||
<folder Name="nordic">
|
||||
|
@@ -118,7 +118,7 @@ void led_blinking_task(void)
|
||||
static uint32_t last_blink = 0;
|
||||
|
||||
// not enough time
|
||||
if ( last_blink + BLINK_INTEVAL > tusb_hal_tick_get() ) return;
|
||||
if ( last_blink + BLINK_INTEVAL > tusb_hal_millis() ) return;
|
||||
|
||||
last_blink += BLINK_INTEVAL;
|
||||
|
||||
|
Reference in New Issue
Block a user