X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Finfo%2Favr.common;h=5bb40dee108eccc8226f6869ee0f60ef6089aad6;hb=019ad4b6e3fca2cbe5e739c94385aadd8dd16bfa;hp=3c691fa67d2768e9054dccc83851384ac040d0d5;hpb=8b1e6d10597ba815349c0488b0fd9b419294d77e;p=bertos.git diff --git a/bertos/cpu/avr/info/avr.common b/bertos/cpu/avr/info/avr.common index 3c691fa6..5bb40dee 100644 --- a/bertos/cpu/avr/info/avr.common +++ b/bertos/cpu/avr/info/avr.common @@ -41,37 +41,28 @@ # # Import the common settings for the path. -include("path.common") +include("../../path.common") + +# Short description of the cpu. +CPU_DESC = [ "ATMEL AVR Microcontroller ", + "8-bit RISC Architecture"] + +# Special CPU related tags. +CPU_TAGS = ["harvard"] # Type of the toolchain we should use to compile the source for this CPU. TOOLCHAIN = "avr" +# 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/" +PROG_SCRIPT_DIR = "prog_scripts/avr/" +MK_FLASH_SCRIPT = PROG_SCRIPT_DIR + "flash.sh" +MK_DEBUG_SCRIPT = PROG_SCRIPT_DIR + "debug.sh" # Common GCC flags. -C_FLAGS = [ "-O0", "-fno-strict-aliasing"] - - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [ "kdebug", - "formartwr", - "sprintf", - "text_format", - "text" ] +MK_CPU_CPPFLAGS = "-Os -fno-strict-aliasing -I" + CPU_DIR + "avr/" -SUPPORTED_DRV = [ "adc", - "flash", - "pwm", - "ser", - "sipo", - "timer", - "wdt", - "ic2", - "kdebug", - "lcd_32122a" ] -