From: asterix Date: Tue, 16 Dec 2008 09:52:08 +0000 (+0000) Subject: Group the common definition in at91sam7.common. X-Git-Tag: 2.1.0~646 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=04d7c5d73670add7846b618256d6466e28878221;p=bertos.git Group the common definition in at91sam7.common. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2036 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/arm/info/at91sam7.common b/bertos/cpu/arm/info/at91sam7.common index a7b43673..ffe50202 100644 --- a/bertos/cpu/arm/info/at91sam7.common +++ b/bertos/cpu/arm/info/at91sam7.common @@ -31,39 +31,41 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # General CPU info denfinition for AT91SAM7 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 = "arm" -# If we use the GCC compiler we should pass some flags. +# If we use the GCC compiler we should pass some flags. CORE_CPU = "arm7tdmi" # Where are locate the bertos directories -BERTOS_CPU_DIR = "bertos/cpu" -BERTOS_SCRIPT_DIR = BERTOS_CPU_DIR + "arm/script/" -BERTOS_HW_DIR = BERTOS_CPU_DIR + "arm/hw/" -BERTOS_DRV_DIR = BERTOS_CPU_DIR + "arm/drv/" +SCRIPT_DIR = CPU_DIR + "arm/script/" +HW_DIR = CPU_DIR + "arm/hw/" +DRV_DIR = CPU_DIR + "arm/drv/" # Common GCC flags. CPPA_FLAGS = [ "-O0", "-g -gdwarf-2", "-g -gen-debug" ] CPP_FLAGS = [ "-O0", "-g3 -gdwarf-2", "-fverbose-asm" ] LD_FLAGS = [ "-nostartfiles", "-Wl,--no-warn-mismatch" ] # CRT file. -CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S"] +CPPA_SRC = [ HW_DIR + "crtat91sam7_rom.S"] # For this cpu core BeRTOS supports these drivers: SUPPORTED_DRV = [ "adc", "kdebug", "pwm", - "ser", + "ser", "stepper", "timer", "twi" ] diff --git a/bertos/cpu/arm/info/at91sam7s128.cdef b/bertos/cpu/arm/info/at91sam7s128.cdef index 8b893afb..81faa486 100644 --- a/bertos/cpu/arm/info/at91sam7s128.cdef +++ b/bertos/cpu/arm/info/at91sam7s128.cdef @@ -31,38 +31,19 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the AT91SAM7S128. -# +# # 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 = "arm" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "arm7tdmi" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [ "-nostartfiles", - "-T " + BERTOS_SCRIPT_DIR + " at91sam7_128_rom.ld" - "-Wl,--no-warn-mismatch" ] - -CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S", - BERTOS_HW_DIR + "switch_arm.S" ] - -# 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 AT91SAM7 family. +include("at91sam7.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# GCC flags for this cpu. +CPP_FLAGS += [ "-D__ARM_AT91SAM7S128__" ] +LD_FLAGS += [ "-T " + SCRIPT_DIR + " at91sam7_128_rom.ld" ] diff --git a/bertos/cpu/arm/info/at91sam7s256.cdef b/bertos/cpu/arm/info/at91sam7s256.cdef index 0ea8ae69..1942bb00 100644 --- a/bertos/cpu/arm/info/at91sam7s256.cdef +++ b/bertos/cpu/arm/info/at91sam7s256.cdef @@ -31,36 +31,20 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the AT91SAM7S256. -# +# # 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 = "arm" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "arm7tdmi" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [ "-nostartfiles", - "-T " + BERTOS_SCRIPT_DIR + " at91sam7_256_rom.ld" - "-Wl,--no-warn-mismatch" ] - -CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S", - BERTOS_HW_DIR + "switch_arm.S" ] +# Import the common settings for the AT91SAM7 family. +include("at91sam7.common") -PC_SRC = [] +# GCC flags for this cpu. +CPP_FLAGS += [ "-D__ARM_AT91SAM7S256__" ] +LD_FLAGS += [ "-T " + SCRIPT_DIR + " at91sam7_256_rom.ld" ] -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] diff --git a/bertos/cpu/arm/info/at91sam7x128.cdef b/bertos/cpu/arm/info/at91sam7x128.cdef index 645e5b6e..cbe263fa 100644 --- a/bertos/cpu/arm/info/at91sam7x128.cdef +++ b/bertos/cpu/arm/info/at91sam7x128.cdef @@ -31,36 +31,19 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the AT91SAM7X128. -# +# # 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 = "arm" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "arm7tdmi" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [ "-nostartfiles", - "-T " + BERTOS_SCRIPT_DIR + " at91sam7_128_rom.ld" - "-Wl,--no-warn-mismatch" ] - -CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S", - BERTOS_HW_DIR + "switch_arm.S" ] - -PC_SRC = [] +# Import the common settings for the AT91SAM7 family. +include("at91sam7.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# GCC flags for this cpu. +CPP_FLAGS += [ "-D__ARM_AT91SAM7X128__" ] +LD_FLAGS += [ "-T " + SCRIPT_DIR + " at91sam7_128_rom.ld" ] diff --git a/bertos/cpu/arm/info/at91sam7x256.cdef b/bertos/cpu/arm/info/at91sam7x256.cdef index 1d1d2bc9..93c6f0a4 100644 --- a/bertos/cpu/arm/info/at91sam7x256.cdef +++ b/bertos/cpu/arm/info/at91sam7x256.cdef @@ -31,36 +31,19 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # # --> -# +# # Cpu info of the AT91SAM7X256. -# +# # 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 = "arm" - -# If we use the GCC compiler we should pass some flags. -CORE_CPU = "arm7tdmi" - -C_FLAGS = [] - -CPPA_FLAGS = [] - -CPP_FLAGS = [] - -LD_FLAGS = [ "-nostartfiles", - "-T " + BERTOS_SCRIPT_DIR + " at91sam7_256_rom.ld" - "-Wl,--no-warn-mismatch" ] - -CPPA_SRC = [ BERTOS_HW_DIR + "crtat91sam7_rom.S", - BERTOS_HW_DIR + "switch_arm.S" ] - -PC_SRC = [] +# Import the common settings for the AT91SAM7 family. +include("at91sam7.common") -# For this cpu BeRTOS support these driver: -SUPPORTED_DRV = [] +# GCC flags for this cpu. +CPP_FLAGS += [ "-D__ARM_AT91SAM7X256__" ] +LD_FLAGS += [ "-T " + SCRIPT_DIR + " at91sam7_256_rom.ld" ]