X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Finfo%2Favr.common;h=b73a08ea6609621f297527474ba67c9490020613;hb=41d14f76b5f57cce434048251df63eb6bbdb1df0;hp=24b56cc534c646adc0693d26049b8aa376edf026;hpb=06674a7de4b89b218814aeac3ca7f2c1156407e7;p=bertos.git diff --git a/bertos/cpu/avr/info/avr.common b/bertos/cpu/avr/info/avr.common index 24b56cc5..b73a08ea 100644 --- a/bertos/cpu/avr/info/avr.common +++ b/bertos/cpu/avr/info/avr.common @@ -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/script/" -HW_DIR = CPU_DIR + "avr/hw/" -DRV_DIR = CPU_DIR + "avr/drv/" +SCRIPT_DIR = CPU_DIR + "avr/scripts/" +MK_FLASH_SCRIPT = PRG_SCRIPTS_DIR + "avr/flash.sh" +MK_STOPFLASH_SCRIPT = PRG_SCRIPTS_DIR + "avr/stopflash.sh" +MK_DEBUG_SCRIPT = PRG_SCRIPTS_DIR + "nodebug.sh" +MK_STOPDEBUG_SCRIPT = PRG_SCRIPTS_DIR + "none.sh" # Common GCC flags. -C_FLAGS = [ "-O0", "-fno-strict-aliasing", "-I" + CPU_DIR + "avr/"] +MK_CPU_CPPFLAGS = "-Os -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" ] -