update nrf52 hal millis

This commit is contained in:
hathach
2018-03-29 18:10:01 +07:00
parent e2f9744369
commit 97db3c7c3d
4 changed files with 20 additions and 18 deletions

View File

@@ -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">

View File

@@ -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;