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

@@ -56,13 +56,6 @@
/* FUNCTION DECLARATION
*------------------------------------------------------------------*/
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
system_ticks++;
}
bool tusb_hal_init(void)
{
@@ -81,12 +74,4 @@ void tusb_hal_int_disable(uint8_t rhport)
NVIC_DisableIRQ(USBD_IRQn);
}
uint32_t tusb_hal_millis(void)
{
//#define tick2ms(tck) ( ( ((uint64_t)(tck)) * 1000) / configTICK_RATE_HZ )
//return tick2ms( app_timer_cnt_get() );
return system_ticks;
}
#endif