diff --git a/project/lpc43xx-generic-test.mk b/project/lpc43xx-generic-test.mk deleted file mode 100644 index 973c641f..00000000 --- a/project/lpc43xx-generic-test.mk +++ /dev/null @@ -1,5 +0,0 @@ -MODULES += \ - app/shell \ - lib/debugcommands - -TARGET := lpc43xx-generic diff --git a/project/lpcxpresso4337-test.mk b/project/lpcxpresso4337-test.mk new file mode 100644 index 00000000..4c269e87 --- /dev/null +++ b/project/lpcxpresso4337-test.mk @@ -0,0 +1,6 @@ +MODULES += \ + lib/debugcommands \ + app/shell \ + app/udctest + +TARGET := lpcxpresso4337 diff --git a/target/lpc43xx-generic/init.c b/target/lpcxpresso4337/init.c similarity index 87% rename from target/lpc43xx-generic/init.c rename to target/lpcxpresso4337/init.c index cdd39f9b..b528f20c 100644 --- a/target/lpc43xx-generic/init.c +++ b/target/lpcxpresso4337/init.c @@ -28,9 +28,10 @@ void target_early_init(void) { - // UART2 on P1.15 (TX) and P1.16 (RX) - writel(PIN_MODE(1) | PIN_PLAIN, PIN_CFG(1, 15)); - writel(PIN_MODE(1) | PIN_PLAIN | PIN_INPUT, PIN_CFG(1, 16)); + // UART1 on P6.4 (TX) and P2.1 (RX) + // LpcXpresso4337 P4 FTDI header + writel(PIN_MODE(2) | PIN_PLAIN, PIN_CFG(6, 4)); + writel(PIN_MODE(1) | PIN_PLAIN | PIN_INPUT, PIN_CFG(2, 1)); } void target_init(void) diff --git a/target/lpc43xx-generic/rules.mk b/target/lpcxpresso4337/rules.mk similarity index 91% rename from target/lpc43xx-generic/rules.mk rename to target/lpcxpresso4337/rules.mk index 942ff75c..d5caa059 100644 --- a/target/lpc43xx-generic/rules.mk +++ b/target/lpcxpresso4337/rules.mk @@ -6,7 +6,7 @@ PLATFORM := lpc43xx GLOBAL_DEFINES += \ CRYSTAL_FREQ=12000000 \ - TARGET_DEBUG_UART=3 \ + TARGET_DEBUG_UART=1 \ TARGET_DEBUG_BAUDRATE=3000000 GLOBAL_INCLUDES += \