diff options
| author | hathach <[email protected]> | 2018-03-29 18:10:01 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-29 18:10:01 +0700 |
| commit | 97db3c7c3d7cfbbb19dbda09809aa39bb19608b9 (patch) | |
| tree | d7a1461e5c658e7ccc59f71891ccc4ab8cdcc639 /tinyusb | |
| parent | e2f97443694c5f8ffd4657055a4caaffab153f2c (diff) | |
update nrf52 hal millis
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/portable/nordic/nrf5x/hal_nrf5x.c | 15 |
1 files changed, 0 insertions, 15 deletions
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 |
