From c5fc30dfb364769cdfc442a32dc58bff5f346ce6 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Mon, 14 Apr 2025 22:51:57 +0200 Subject: [PATCH] add compile flags (CoC autocomplete) for 324pa --- Firmware/compile_flags.txt | 12 ++++++++++++ Firmware/makefile | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Firmware/compile_flags.txt diff --git a/Firmware/compile_flags.txt b/Firmware/compile_flags.txt new file mode 100644 index 0000000..d1e3ae0 --- /dev/null +++ b/Firmware/compile_flags.txt @@ -0,0 +1,12 @@ +--target=avr +-D +__AVR_ATmega324PA__ +-D +F_CPU=16000000UL +-I +/usr/lib/avr/include +-I +./include +-I +../../dmm-libs/include + diff --git a/Firmware/makefile b/Firmware/makefile index 3afcc0a..39a0460 100644 --- a/Firmware/makefile +++ b/Firmware/makefile @@ -1,8 +1,8 @@ TARGET = main SRCS := $(shell find ../../dmm-libs/src/ -name '*.c') $(shell find src/ -name '*.c') FILES = $(SRCS:%.c=%) #main uart avrIOhelper/io-helper #uart#hier alle c-Datein reinschreiben, trennung durch " " und ohne .c-Endung -MCU = atmega1284 -PROGC = m1284 +MCU = atmega324pa +PROGC = m324pa CC = avr-gcc #TOOL = stk500 -P /dev/ttyUSB0 TOOL = atmelice