From: Leo C Date: Mon, 10 Sep 2018 18:49:20 +0000 (+0200) Subject: Tup: F_CPU per config X-Git-Tag: hexrel-6.9.0~24 X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/commitdiff_plain/df728b3578bfba42632b2a3bd7250fba70776b22?hp=51dd0948df5ed53b11cab4e909e19ee7cee363c5 Tup: F_CPU per config --- diff --git a/avr/Tupfile b/avr/Tupfile index 68a6ae0..2e9cae8 100644 --- a/avr/Tupfile +++ b/avr/Tupfile @@ -38,8 +38,7 @@ else DEFS += -DMCU_STRING=\"ATmega2561\" endif -F_CPU = 18432000UL -DEFS += -DF_CPU=$(F_CPU) +DEFS += -DF_CPU=@(F_CPU) INCLUDES += -I$(TOP)/include diff --git a/configs/m1281-debug.config b/configs/m1281-debug.config index db4eb98..fd0bdf3 100644 --- a/configs/m1281-debug.config +++ b/configs/m1281-debug.config @@ -1,2 +1,4 @@ CONFIG_DEBUG=0 CONFIG_MCU=atmega1281 +CONFIG_F_CPU=18432000UL + diff --git a/configs/m2561-debug.config b/configs/m2561-debug.config index 2366681..8a48e19 100644 --- a/configs/m2561-debug.config +++ b/configs/m2561-debug.config @@ -1,2 +1,4 @@ CONFIG_DEBUG=0 CONFIG_MCU=atmega2561 +CONFIG_F_CPU=9216000UL +