add support for atmega328p
This commit is contained in:
8
Makefile
8
Makefile
@@ -39,6 +39,14 @@ AVRDUDE_FUSES=lfuse:w:0xc2:m hfuse:w:0xdd:m efuse:w:0xfa:m
|
||||
BOOTLOADER_START=0x3C00
|
||||
endif
|
||||
|
||||
ifeq ($(MCU), atmega328p)
|
||||
# (8Mhz internal RC-Osz., 2.7V BOD)
|
||||
AVRDUDE_MCU=m328p -F
|
||||
AVRDUDE_FUSES=lfuse:w:0xc2:m hfuse:w:0xda:m efuse:w:0xfd:m
|
||||
|
||||
BOOTLOADER_START=0x7800
|
||||
endif
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
CFLAGS = -pipe -g -Os -mmcu=$(MCU) -Wall -fdata-sections -ffunction-sections
|
||||
|
||||
Reference in New Issue
Block a user