summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-01 22:21:54 +0700
committerhathach <[email protected]>2018-12-01 22:21:54 +0700
commitfb842bb8041054c20d53cef2da2d47c4d44d2936 (patch)
tree987704c3043a017ff976d9f14d31a940ec24691b /hw
parent89d96b92af543bdf9806c29e82d449448d0abaea (diff)
lp11u able to receive setup packet
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c b/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c
index d8a5ec061..51cdfaafc 100644
--- a/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c
+++ b/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c
@@ -166,20 +166,17 @@ static const PINMUX_GRP_T pinmuxing[] = {
/* PIO2_23 - - GPIO */
};
-// required by startup
+// invoked by startup code
void SystemInit(void)
{
-
+ /* Enable IOCON clock */
+ Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_IOCON);
+ Chip_IOCON_SetPinMuxing(LPC_IOCON, pinmuxing, sizeof(pinmuxing) / sizeof(PINMUX_GRP_T));
+ Chip_SetupXtalClocking();
}
void board_init(void)
{
- /* Enable IOCON clock */
- Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_IOCON);
-
- Chip_IOCON_SetPinMuxing(LPC_IOCON, pinmuxing, sizeof(pinmuxing) / sizeof(PINMUX_GRP_T));
-
-Chip_SetupXtalClocking();
#if CFG_TUSB_OS == OPT_OS_NONE // TODO may move to main.c
SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer