From: lottaviano Date: Thu, 13 Oct 2011 16:43:14 +0000 (+0000) Subject: Fix XMega information for wizard. X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=1c6068d9cd0c1a2bc396f4cc2d99a9b64f9d82d0 Fix XMega information for wizard. The wizard did not generate a working set of makefiles, I needed to add "xmega" to CPU_TAGS. While doing this I decided to create a xmega.common file with these xmega specific settings and include it from ATxmega32D4.cdef. Signed-off-by: Onno git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5162 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/info/ATxmega32D4.cdef b/bertos/cpu/avr/info/ATxmega32D4.cdef index 9cae5eb0..82077cec 100644 --- a/bertos/cpu/avr/info/ATxmega32D4.cdef +++ b/bertos/cpu/avr/info/ATxmega32D4.cdef @@ -40,7 +40,7 @@ # Import the common settings for the path. -include("avr.common") +include("xmega.common") # Short description of the cpu. CPU_DESC += [ "32 Kbyte in-System Programmable Flash", @@ -50,8 +50,6 @@ CPU_DESC += [ "32 Kbyte in-System Programmable Flash", # If we use the GCC compiler we should pass some flags. CORE_CPU = "atxmega32d4" -HW_DIR = CPU_DIR + "avr/hw/" -MK_CPU_CSRC = HW_DIR + "init_xmega.c" # Special CPU related tags. CPU_TAGS += ["xmega32d"] diff --git a/bertos/cpu/avr/info/xmega.common b/bertos/cpu/avr/info/xmega.common new file mode 100644 index 00000000..2765a645 --- /dev/null +++ b/bertos/cpu/avr/info/xmega.common @@ -0,0 +1,56 @@ +# +#-*- coding: utf-8 -*- +# +# \file +# +# +# General CPU info definition AVR Xmega family. +# +# This file contain all info for the BeRTOS wizard. +# +# \author Onno +# +# + +# Import the common settings for the path. +include("avr.common") + +# Special CPU related tags. +CPU_TAGS += ["xmega"] + +# CPU default clock frequency +# Set to 2Mhz as by default the Internal 2Mhz clock is used +CPU_DEFAULT_FREQ = "2000000UL" + +# Add additional init routines for the Xmega to the source +HW_DIR = CPU_DIR + "avr/hw/" +MK_CPU_CSRC = HW_DIR + "init_xmega.c" \ No newline at end of file