Add support for stopping debugging/flashing.
[bertos.git] / bertos / cpu / avr / info / avr.common
index b04117f17d3509f73a36599beb9b0b9b166fc814..41b8d0d299ed6efb39a2fcbcca86bb9231d6998d 100644 (file)
@@ -53,35 +53,17 @@ CPU_TAGS = ["harvard"]
 # Type of the toolchain we should use to compile the source for this CPU.
 TOOLCHAIN = "avr"
 
-# Name of the flag used by the build system to pass to the compiler the CPU type.
-CPU_FLAG_NAME = "MCU"
+# CPU default clock frequency
+CPU_DEFAULT_FREQ = "8000000UL"
 
 # Where are locate the bertos directories
 SCRIPT_DIR = CPU_DIR + "avr/scripts/"
-HW_DIR = CPU_DIR + "avr/hw/"
-DRV_DIR = CPU_DIR + "avr/drv/"
 
+MK_FLASH_SCRIPT = PRG_SCRIPTS_DIR + "avr/flash.sh"
+MK_STOPFLASH_SCRIPT = PRG_SCRIPTS_DIR + "avr/stopflash.sh"
+MK_DEBUG_SCRIPT = PRG_SCRIPTS_DIR + "avr/debug.sh"
+MK_STOPDEBUG_SCRIPT = PRG_SCRIPTS_DIR + "avr/stopdebug.sh"
 
 # Common GCC flags.
-C_FLAGS = [ "-O0", "-fno-strict-aliasing", "-I" + CPU_DIR + "avr/"]
-
-
-# If you want to use, one o more, of these modules in your project you should compile in
-# different way.
-PC_SRC = [ "kdebug",
-           "formatwr",
-           "sprintf",
-           "text_format",
-           "text" ]
-
-SUPPORTED_DRV = [ "adc",
-                 "flash",
-                 "pwm",
-                 "ser",
-                 "sipo",
-                 "timer",
-                 "wdt",
-                 "ic2",
-                 "kdebug",
-                 "lcd_32122a" ]
+MK_CPU_CPPFLAGS = "-Os -fno-strict-aliasing -I" + CPU_DIR + "avr/"