lpcxpresso 1769 build with makefile but not blinky yet

This commit is contained in:
hathach
2019-05-15 11:34:40 +07:00
parent 2e07a09b0d
commit 2582dfb3af
6 changed files with 614 additions and 42 deletions
-1
View File
@@ -4,7 +4,6 @@ CFLAGS += \
-mcpu=cortex-m3 \
-nostdlib \
-DCORE_M3 \
-D__VTOR_PRESENT=0 \
-DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
-D__USE_LPCOPEN \
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM3")))' \
+3 -2
View File
@@ -30,9 +30,9 @@
#define LED_PORT 0
#define LED_PIN 7
// Joytick UP if connected to LPCXpresso Base board
// Joytick Down if connected to LPCXpresso Base board
#define BUTTON_PORT 1
#define BUTTON_PIN 22
#define BUTTON_PIN 20
//static const struct {
// uint8_t port;
@@ -103,6 +103,7 @@ void board_init(void)
//--------------------------------------------------------------------+
// Board porting API
//--------------------------------------------------------------------+
#if CFG_TUSB_OS == OPT_OS_NONE
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)