From df728b3578bfba42632b2a3bd7250fba70776b22 Mon Sep 17 00:00:00 2001 From: Leo C Date: Mon, 10 Sep 2018 20:49:20 +0200 Subject: [PATCH 1/1] Tup: F_CPU per config --- avr/Tupfile | 3 +-- configs/m1281-debug.config | 2 ++ configs/m2561-debug.config | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) 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 + -- 2.39.2