diff --git a/hw/bsp/lpcxpresso11u37/board.mk b/hw/bsp/lpcxpresso11u37/board.mk index f28a8e975..af398fc59 100644 --- a/hw/bsp/lpcxpresso11u37/board.mk +++ b/hw/bsp/lpcxpresso11u37/board.mk @@ -4,7 +4,6 @@ CFLAGS += \ -mcpu=cortex-m0 \ -nostdlib \ -DCORE_M0 \ - -D__VTOR_PRESENT=0 \ -D__USE_LPCOPEN \ -DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \ -DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \ diff --git a/hw/bsp/lpcxpresso11u37/lpcxpresso11u37.c b/hw/bsp/lpcxpresso11u37/lpcxpresso11u37.c index ecb0faf1f..ce093ed29 100644 --- a/hw/bsp/lpcxpresso11u37/lpcxpresso11u37.c +++ b/hw/bsp/lpcxpresso11u37/lpcxpresso11u37.c @@ -28,7 +28,7 @@ #include "../board.h" #define LED_PORT 1 -#define LED_PIN 0 +#define LED_PIN 24 #define LED_STATE_ON 0 // Wake up Switch @@ -38,7 +38,7 @@ /* System oscillator rate and RTC oscillator rate */ const uint32_t OscRateIn = 12000000; -const uint32_t RTCOscRateIn = 32768; +const uint32_t ExtRateIn = 0; /* Pin muxing table, only items that need changing from their default pin state are in this table. Not every pin is mapped. */ @@ -59,6 +59,7 @@ static const PINMUX_GRP_T pinmuxing[] = }; +#if 1 /* Setup system clocking */ static void SystemSetupClocking(void) { @@ -113,11 +114,13 @@ static void SystemSetupClocking(void) /* Wait for PLL to lock */ while (!Chip_Clock_IsUSBPLLLocked()) {} } +#endif // Invoked by startup code void SystemInit(void) { SystemSetupClocking(); +// Chip_SystemInit(); Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_RAM1); /* Enable IOCON clock */ diff --git a/hw/mcu/nxp/lpc_driver b/hw/mcu/nxp/lpc_driver index 675b41620..83dc833bf 160000 --- a/hw/mcu/nxp/lpc_driver +++ b/hw/mcu/nxp/lpc_driver @@ -1 +1 @@ -Subproject commit 675b41620db763f89bdbe946cbfb7a9e8f27d42b +Subproject commit 83dc833bfb0972b1df1bbf271f3a9e574d5f2876