From 19e4c0a22921d60236b51b57ccc38adaa4b887ee Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 15 Dec 2008 14:48:57 +0000 Subject: [PATCH 1/1] Define the common setting for sam7 cpu. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2033 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/info/at91sam7.common | 70 +++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 bertos/cpu/arm/info/at91sam7.common diff --git a/bertos/cpu/arm/info/at91sam7.common b/bertos/cpu/arm/info/at91sam7.common new file mode 100644 index 00000000..a7b43673 --- /dev/null +++ b/bertos/cpu/arm/info/at91sam7.common @@ -0,0 +1,70 @@ +# +#-*- coding: utf-8 -*- +# +# \file +# +# +# General CPU info denfinition for AT91SAM7 family. +# +# 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" + +# 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/" + +# 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"] + +# For this cpu core BeRTOS supports these drivers: +SUPPORTED_DRV = [ "adc", + "kdebug", + "pwm", + "ser", + "stepper", + "timer", + "twi" ] + -- 2.25.1