Group the common definition in at91sam7.common.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 09:52:08 +0000 (09:52 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 09:52:08 +0000 (09:52 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2036 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/info/at91sam7.common
bertos/cpu/arm/info/at91sam7s128.cdef
bertos/cpu/arm/info/at91sam7s256.cdef
bertos/cpu/arm/info/at91sam7x128.cdef
bertos/cpu/arm/info/at91sam7x256.cdef

index a7b43673cc2086c77aef9cc0b9363e4b899aea31..ffe5020291f14e175217a7a1b03475dc4d5944ba 100644 (file)
 # 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 <asterix@develer.com>
 #
 #
 
+# 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" ]
index 8b893afbcbef0db58093d5bd8524cd3fd392ddf6..81faa48645140a94a0a02cb3e76d646f8e5b6bc5 100644 (file)
 # 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 <asterix@develer.com>
 #
 #
 
-# 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" ]
 
index 0ea8ae698538ee69eab6d897f30cd689160bd7ef..1942bb0062da08aa106ec8c256daa6731bb7f8c7 100644 (file)
 # 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 <asterix@develer.com>
 #
 #
 
-# 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 = []
 
index 645e5b6eee85cf0fa6651018214509070eb4a6bb..cbe263fa45bef19f8f383f21dc453c9e8188d5af 100644 (file)
 # 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 <asterix@develer.com>
 #
 #
 
-# 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" ]
 
index 1d1d2bc91b33db70dd58cb8793da7ecf37ea39fb..93c6f0a492d197e3ca68739182e6300bc109c772 100644 (file)
 # 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 <asterix@develer.com>
 #
 #
 
-# 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" ]