mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-15 20:42:23 +00:00
board test run with lpcxpresso 11u37
This commit is contained in:
parent
4ef3946a25
commit
b1296139d0
@ -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")))' \
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user