From: asterix Date: Fri, 5 Nov 2010 14:00:48 +0000 (+0000) Subject: Add comment and reformat. X-Git-Tag: 2.6.0~5^2~6 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a789aba228ab4ed5e1831d6dc19de5ae20baa38e;p=bertos.git Add comment and reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4514 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3n-ek/templates/empty/empty.mk b/boards/sam3n-ek/templates/empty/empty.mk index 55893f52..0b669328 100644 --- a/boards/sam3n-ek/templates/empty/empty.mk +++ b/boards/sam3n-ek/templates/empty/empty.mk @@ -79,10 +79,10 @@ empty_ASRC = $(empty_CPU_ASRC) $(empty_WIZARD_ASRC) $(empty_USER_ASRC) # CPU specific flags and options, defined in the CPU definition files. # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S +empty_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S empty_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork empty_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_SAM3N4__ -empty_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/clock_sam3.c +empty_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/clock_sam3.c empty_PROGRAMMER_CPU = sam3 empty_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh empty_CPU = cortex-m3 diff --git a/boards/sam3n-ek/templates/empty/main.c b/boards/sam3n-ek/templates/empty/main.c index 71520bd1..698992fe 100644 --- a/boards/sam3n-ek/templates/empty/main.c +++ b/boards/sam3n-ek/templates/empty/main.c @@ -41,6 +41,8 @@ #include "hw/hw_led.h" #include "hw/hw_lcd.h" +#include + #include #include @@ -85,6 +87,7 @@ static void init(void) int main(void) { + /* Hardware initialization */ init();