diff options
| author | hathach <[email protected]> | 2019-09-06 15:49:42 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-09-06 15:49:42 +0700 |
| commit | b1296139d0a6f2f062ca8b156a2ce5c81dfa16a9 (patch) | |
| tree | b2d0b6d51627d75d9d09873882441c965ccc46ac | |
| parent | 4ef3946a251788f202f8b2ee364074c1044e5b58 (diff) | |
board test run with lpcxpresso 11u37
| -rw-r--r-- | hw/bsp/lpcxpresso11u37/board.mk | 1 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso11u37/lpcxpresso11u37.c | 7 | ||||
| m--------- | hw/mcu/nxp/lpc_driver | 0 |
3 files changed, 5 insertions, 3 deletions
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 -Subproject 675b41620db763f89bdbe946cbfb7a9e8f27d42 +Subproject 83dc833bfb0972b1df1bbf271f3a9e574d5f287 |
