summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/Makefile20
-rw-r--r--arch/arm/lpc17xx/Drivers/include/lpc17xx_clkpwr.h2
-rw-r--r--arch/arm/lpc17xx/Drivers/include/lpc17xx_pinsel.h2
3 files changed, 22 insertions, 2 deletions
diff --git a/arch/Makefile b/arch/Makefile
new file mode 100644
index 0000000..02596ed
--- /dev/null
+++ b/arch/Makefile
@@ -0,0 +1,20 @@
+TARGET_LIB = libarch.a
+
+all: $(TARGET_LIB)
+
+include $(ROOTDIR)/common.mk
+
+ifeq ($(CPU),arm)
+ifeq ($(CPU_FLAVOR),lpc1768)
+TARGET_INCLUDES += arm/lpc17xx/Core/CM3/DeviceSupport/NXP/LPC17xx arm/lpc17xx/Core/CM3/CoreSupport arm/lpc17xx/Drivers/include
+TARGET_SRCS += arm/lpc17xx/Core/CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c arm/lpc17xx/Core/CM3/CoreSupport/core_cm3.c
+TARGET_SRCS += $(addprefix arm/lpc17xx/Drivers/source/lpc17xx_, spi.c rit.c exti.c wdt.c uart.c dac.c rtc.c i2s.c pwm.c mcpwm.c pinsel.c nvic.c emac.c systick.c ssp.c can.c gpio.c libcfg_default.c i2c.c timer.c gpdma.c clkpwr.c qei.c adc.c)
+endif
+endif
+
+include $(ROOTDIR)/target-rules.mk
+
+clean: clean-generic
+
+
+
diff --git a/arch/arm/lpc17xx/Drivers/include/lpc17xx_clkpwr.h b/arch/arm/lpc17xx/Drivers/include/lpc17xx_clkpwr.h
index b8876e2..76b98e4 100644
--- a/arch/arm/lpc17xx/Drivers/include/lpc17xx_clkpwr.h
+++ b/arch/arm/lpc17xx/Drivers/include/lpc17xx_clkpwr.h
@@ -28,7 +28,7 @@
#define LPC17XX_CLKPWR_H_
/* Includes ------------------------------------------------------------------- */
-#include "lpc17xx.h"
+#include "LPC17xx.h"
#include "lpc_types.h"
#ifdef __cplusplus
diff --git a/arch/arm/lpc17xx/Drivers/include/lpc17xx_pinsel.h b/arch/arm/lpc17xx/Drivers/include/lpc17xx_pinsel.h
index f8c47b9..cb9e645 100644
--- a/arch/arm/lpc17xx/Drivers/include/lpc17xx_pinsel.h
+++ b/arch/arm/lpc17xx/Drivers/include/lpc17xx_pinsel.h
@@ -28,7 +28,7 @@
#define LPC17XX_PINSEL_H_
/* Includes ------------------------------------------------------------------- */
-#include "lpc17xx.h"
+#include "LPC17xx.h"
#include "lpc_types.h"
#ifdef __cplusplus