board test run with lpcxpresso 11u37

This commit is contained in:
hathach 2019-09-06 15:49:42 +07:00
parent 4ef3946a25
commit b1296139d0
3 changed files with 6 additions and 4 deletions

View File

@ -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")))' \

View File

@ -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 */

@ -1 +1 @@
Subproject commit 675b41620db763f89bdbe946cbfb7a9e8f27d42b
Subproject commit 83dc833bfb0972b1df1bbf271f3a9e574d5f2876