diff options
| author | hathach <[email protected]> | 2018-03-29 18:03:04 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-29 18:03:04 +0700 |
| commit | e2f97443694c5f8ffd4657055a4caaffab153f2c (patch) | |
| tree | 3b70162f96d3829e2c5584f8ce948e4d2a0b71a9 /tinyusb/portable | |
| parent | 43bf760f814f55fac50794e3eb8e6ecb5d692705 (diff) | |
rename tusb_hal_tick_get to tusb_hal_millis
rename TUSB_CFG_TICKS_HZ to BOARD_TICKS_HZ
Diffstat (limited to 'tinyusb/portable')
| -rw-r--r-- | tinyusb/portable/nordic/nrf5x/hal_nrf5x.c | 2 | ||||
| -rw-r--r-- | tinyusb/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c index 073f4ac36..4cb7f076e 100644 --- a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c +++ b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c @@ -81,7 +81,7 @@ void tusb_hal_int_disable(uint8_t rhport) NVIC_DisableIRQ(USBD_IRQn); } -uint32_t tusb_hal_tick_get(void) +uint32_t tusb_hal_millis(void) { //#define tick2ms(tck) ( ( ((uint64_t)(tck)) * 1000) / configTICK_RATE_HZ ) //return tick2ms( app_timer_cnt_get() ); diff --git a/tinyusb/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c b/tinyusb/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c index ff7d32a3f..31481b742 100644 --- a/tinyusb/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c +++ b/tinyusb/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c @@ -53,22 +53,6 @@ enum { LPC43XX_USBMODE_VBUS_HIGH = 1
};
-#if TUSB_CFG_OS == TUSB_OS_NONE
-
-volatile uint32_t system_ticks = 0;
-
-void SysTick_Handler (void)
-{
- system_ticks++;
-}
-
-uint32_t tusb_hal_tick_get(void)
-{
- return system_ticks;
-}
-
-#endif
-
void tusb_hal_int_enable(uint8_t rhport)
{
NVIC_EnableIRQ(rhport ? USB1_IRQn : USB0_IRQn);
|
