From 97db3c7c3d7cfbbb19dbda09809aa39bb19608b9 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 29 Mar 2018 18:10:01 +0700 Subject: update nrf52 hal millis --- tinyusb/portable/nordic/nrf5x/hal_nrf5x.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'tinyusb') diff --git a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c index 4cb7f076e..e3d27e556 100644 --- a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c +++ b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c @@ -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 -- cgit v1.3.1