]> cloudbase.mooo.com Git - z180-stamp.git/commitdiff
Tup: F_CPU per config
authorLeo C <erbl259-lmu@yahoo.de>
Mon, 10 Sep 2018 18:49:20 +0000 (20:49 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Mon, 10 Sep 2018 18:49:20 +0000 (20:49 +0200)
avr/Tupfile
configs/m1281-debug.config
configs/m2561-debug.config

index 68a6ae0e93c6239514b23e0d4ea4c34252ceabaa..2e9cae8884a424f36650aaf422834cfb4d5a0c9a 100644 (file)
@@ -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
 
index db4eb980d27f22b56357bc530392542c08e3c0b0..fd0bdf3a1dce7c8d5e965a31a67510a25c0d7770 100644 (file)
@@ -1,2 +1,4 @@
 CONFIG_DEBUG=0
 CONFIG_MCU=atmega1281
+CONFIG_F_CPU=18432000UL
+
index 23666819ea9bb35f75feb5eac5ffe2692b6a39c1..8a48e19cdfd2c132332708236b3e8ad07717a5ca 100644 (file)
@@ -1,2 +1,4 @@
 CONFIG_DEBUG=0
 CONFIG_MCU=atmega2561
+CONFIG_F_CPU=9216000UL
+