# 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" ]
# 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" ]
# 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 = []
# 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" ]
# 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" ]