diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-10-25 12:49:35 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-10-25 12:49:35 +0100 |
commit | 9435a85605d7efc75642491c85b0942bd558fcec (patch) | |
tree | 56e0c8f5530cac4e5e09aa174edaa170a0120726 /usart_irq/Makefile | |
parent | db0a19edd8c4cd62c6784d8bb1d91c61a6447a2a (diff) | |
download | stm32f103c8-examples-9435a85605d7efc75642491c85b0942bd558fcec.tar stm32f103c8-examples-9435a85605d7efc75642491c85b0942bd558fcec.tar.zst stm32f103c8-examples-9435a85605d7efc75642491c85b0942bd558fcec.zip |
Add usart_irq Code
Diffstat (limited to 'usart_irq/Makefile')
-rw-r--r-- | usart_irq/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/usart_irq/Makefile b/usart_irq/Makefile new file mode 100644 index 0000000..09b7d30 --- /dev/null +++ b/usart_irq/Makefile @@ -0,0 +1,34 @@ +PROJECT = usart_irq +BUILD_DIR = bin + +SHARED_DIR = ../libraries +CFILES = main.c +CFILES += usart.c fifo.c +#AFILES += api-asm.S + +# TODO - you will need to edit these two lines! +DEVICE=stm32f103c8 +#OOCD_FILE = board/stm32f4discovery.cfg + +# You shouldn't have to edit anything below here. +VPATH += $(SHARED_DIR) +INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR)) +OPENCM3_DIR=../libopencm3 + +include $(OPENCM3_DIR)/mk/genlink-config.mk +include ../rules.mk +include $(OPENCM3_DIR)/mk/genlink-rules.mk + + +# Black Magic Probe: + +GDB=/usr/bin/arm-none-eabi-gdb +BMP_DEVICE=/dev/ttyACM0 + +bmp: $(PROJECT).elf + $(GDB) $(PROJECT).elf \ + -ex 'set confirm off' \ + -ex 'target extended-remote $(BMP_DEVICE)' \ + -ex 'monitor swdp_scan' \ + -ex 'attach 1' + |