From: asterix Date: Tue, 16 Dec 2008 11:10:34 +0000 (+0000) Subject: Move all common settings and defines to avr.common. X-Git-Tag: 2.1.0~643 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8b1e6d10597ba815349c0488b0fd9b419294d77e;p=bertos.git Move all common settings and defines to avr.common. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2039 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/info/atmega103.cdef b/bertos/cpu/avr/info/atmega103.cdef index cea48676..1c24827f 100644 --- a/bertos/cpu/avr/info/atmega103.cdef +++ b/bertos/cpu/avr/info/atmega103.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega103. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega103" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega103" diff --git a/bertos/cpu/avr/info/atmega128.cdef b/bertos/cpu/avr/info/atmega128.cdef index 2489e695..cd1b6d00 100644 --- a/bertos/cpu/avr/info/atmega128.cdef +++ b/bertos/cpu/avr/info/atmega128.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega128. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega128" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega128" diff --git a/bertos/cpu/avr/info/atmega1281.cdef b/bertos/cpu/avr/info/atmega1281.cdef index 644324e7..7915cb2e 100644 --- a/bertos/cpu/avr/info/atmega1281.cdef +++ b/bertos/cpu/avr/info/atmega1281.cdef @@ -31,35 +31,19 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega1281. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega1281" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega1281" diff --git a/bertos/cpu/avr/info/atmega168.cdef b/bertos/cpu/avr/info/atmega168.cdef index 5842f5f4..c648eba7 100644 --- a/bertos/cpu/avr/info/atmega168.cdef +++ b/bertos/cpu/avr/info/atmega168.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega168. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega168" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega168" diff --git a/bertos/cpu/avr/info/atmega32.cdef b/bertos/cpu/avr/info/atmega32.cdef index 8f011d17..8e35d718 100644 --- a/bertos/cpu/avr/info/atmega32.cdef +++ b/bertos/cpu/avr/info/atmega32.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega32. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega32" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega32" diff --git a/bertos/cpu/avr/info/atmega64.cdef b/bertos/cpu/avr/info/atmega64.cdef index 63eba948..b7182434 100644 --- a/bertos/cpu/avr/info/atmega64.cdef +++ b/bertos/cpu/avr/info/atmega64.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega64. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega64" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega64" diff --git a/bertos/cpu/avr/info/atmega8.cdef b/bertos/cpu/avr/info/atmega8.cdef index 0d4ec424..5ce652c2 100644 --- a/bertos/cpu/avr/info/atmega8.cdef +++ b/bertos/cpu/avr/info/atmega8.cdef @@ -31,35 +31,18 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the ATMega8. -# +# # This file contain all info for the BeRTOS wizard. # # \author Daniele Basile # # -# Type of the toolchain we should use to compile the source for this CPU. -TOOLCHAIN = "avr" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "atmega8" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [] - -CPPA_SRC = [] - -# If you want to use, one o more, of these modules in your project you should compile in -# different way. -PC_SRC = [] +# Import the common settings for the path. +include("avr.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# If we use the GCC compiler we should pass some flags. +CORE_CPU += "atmega8" diff --git a/bertos/cpu/avr/info/avr.common b/bertos/cpu/avr/info/avr.common new file mode 100644 index 00000000..3c691fa6 --- /dev/null +++ b/bertos/cpu/avr/info/avr.common @@ -0,0 +1,77 @@ +# +#-*- coding: utf-8 -*- +# +# \file +# +# +# General CPU info denfinition AVR family. +# +# This file contain all info for the BeRTOS wizard. +# +# \author Daniele Basile +# +# + +# Import the common settings for the path. +include("path.common") + +# Type of the toolchain we should use to compile the source for this CPU. +TOOLCHAIN = "avr" + +# Where are locate the bertos directories +SCRIPT_DIR = CPU_DIR + "avr/script/" +HW_DIR = CPU_DIR + "avr/hw/" +DRV_DIR = CPU_DIR + "avr/drv/" + + +# 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" ] + +SUPPORTED_DRV = [ "adc", + "flash", + "pwm", + "ser", + "sipo", + "timer", + "wdt", + "ic2", + "kdebug", + "lcd_32122a" ] +