altos/teledongle-v1.9: Switch to NXP processor as on prototype boards
[fw/altos] / src / teledongle-v1.9 / Makefile
index d800d6108ece77564d3feae1d434e0d25d77ec84..78deb9e26b102f90fa96e9942106abcad54aeff9 100644 (file)
@@ -3,7 +3,7 @@
 #
 #
 
-include ../stm/Makefile.defs
+include ../lpc/Makefile.defs
 
 INC = \
        ao.h \
@@ -14,21 +14,11 @@ INC = \
        ao_product.h \
        ao_task.h \
        ao_whiten.h \
-       stm32l.h \
+       lpc.h \
        ao_cc1200.h \
        ao_cc1200_CC1200.h \
        Makefile
 
-#PROFILE=ao_profile.c
-#PROFILE_DEF=-DAO_PROFILE=1
-
-#SAMPLE_PROFILE=ao_sample_profile.c \
-#      ao_sample_profile_timer.c
-#SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
-
-#STACK_GUARD=ao_mpu_stm.c
-#STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
-
 ALTOS_SRC = \
        ao_boot_chain.c \
        ao_interrupt.c \
@@ -38,20 +28,17 @@ ALTOS_SRC = \
        ao_cmd.c \
        ao_config.c \
        ao_task.c \
-       ao_led.c \
+       ao_led_lpc.c \
        ao_stdio.c \
        ao_panic.c \
-       ao_timer.c \
+       ao_timer_lpc.c \
        ao_mutex.c \
        ao_freq.c \
-       ao_dma_stm.c \
-       ao_spi_stm.c \
-       ao_usb_stm.c \
-       ao_exti_stm.c \
+       ao_spi_lpc.c \
+       ao_usb_lpc.c \
+       ao_exti_lpc.c \
        ao_send_packet.c \
-       ao_eeprom_stm.c \
        ao_monitor.c \
-       ao_rssi.c \
        ao_packet_master.c \
        ao_packet.c
 
@@ -59,7 +46,7 @@ PRODUCT=TeleDongle-v1.9
 PRODUCT_DEF=-DTELEDONGLE
 IDPRODUCT=0x000c
 
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
+CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) -Os -g
 
 PROGNAME=teledongle-v1.9
 PROG=$(PROGNAME)-$(VERSION).elf
@@ -78,6 +65,9 @@ $(OBJ): $(INC)
 ao_product.h: ao-make-product.5c ../Version
        $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
 
+load: $(PROG)
+       lpc-load $(PROG)
+
 distclean:     clean
 
 clean: