clean up bsp, adde board_millis()

This commit is contained in:
hathach
2019-03-23 22:31:07 +07:00
parent d866999bf0
commit 29e075b8b9
14 changed files with 40 additions and 65 deletions
+1 -9
View File
@@ -24,8 +24,6 @@
* This file is part of the TinyUSB stack.
*/
#ifdef BOARD_LPCXPRESSO1347
#include "chip.h"
#include "../board.h"
@@ -83,10 +81,6 @@ void board_init(void)
{
SystemCoreClockUpdate();
#if CFG_TUSB_OS == OPT_OS_NONE
SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer
#endif
#if CFG_TUSB_OS == OPT_OS_NONE
// 1ms tick timer
SysTick_Config(SystemCoreClock / 1000);
@@ -127,7 +121,7 @@ uint32_t tusb_hal_millis(void)
return board_tick2ms(system_ticks);
}
uint32_t board_noos_millis(void)
uint32_t board_millis(void)
{
return system_ticks;
}
@@ -181,5 +175,3 @@ int board_uart_write(void const * buf, int len)
(void) len;
return 0;
}
#endif