From: qwert Date: Thu, 4 Sep 2008 16:52:11 +0000 (+0000) Subject: Start to develop a dummy app for Luminary Micro Stellaris. It need a startup routine... X-Git-Tag: 2.0.0~147 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9bf7de00de04e8d690f309fce6e3892599a478b1;p=bertos.git Start to develop a dummy app for Luminary Micro Stellaris. It need a startup routine..coming soon. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1787 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/lm3s1968/hw/hw_cpu.h b/app/lm3s1968/hw/hw_cpu.h new file mode 100644 index 00000000..52e3d4b8 --- /dev/null +++ b/app/lm3s1968/hw/hw_cpu.h @@ -0,0 +1,56 @@ +/** + * \file + * + * + * \brief Hardware-specific definitions + * + * \version $Id$ + * + * \author Bernie Innocenti + */ + +#ifndef HW_CPU_H +#define HW_CPU_H + +#warning TODO:This is an example implementation, you must implement it! + +/// CPU Clock frequency +#define CLOCK_FREQ (48023000L/* Implement me! */) + + +/* Timer IRQ strobe */ +//#if CONFIG_TIMER_STROBE +// #define TIMER_STROBE_ON /* Implement me! */ +// #define TIMER_STROBE_OFF /* Implement me! */ +// #define TIMER_STROBE_INIT /* Implement me! */ +//#endif /* CONFIG_TIMER_STROBE */ + +#endif /* HW_CPU_H */ diff --git a/app/lm3s1968/lm3s1968.c b/app/lm3s1968/lm3s1968.c new file mode 100644 index 00000000..514f255c --- /dev/null +++ b/app/lm3s1968/lm3s1968.c @@ -0,0 +1,49 @@ +/** + * \file + * + * + * \version $Id$ + * + * \author Manuele Fanelli + * + * \brief LM3S168 porting test. + */ + +#include "bertos/cpu/detect.h" + +int main (void) +{ + int c; + + for (;;) + c++; + return 0; +} diff --git a/app/lm3s1968/lm3s1968.mk b/app/lm3s1968/lm3s1968.mk new file mode 100644 index 00000000..8d1b32d9 --- /dev/null +++ b/app/lm3s1968/lm3s1968.mk @@ -0,0 +1,31 @@ +# +# $Id: lm3s1968.mk 18234 2007-10-08 13:39:48Z rasky $ +# Copyright 2006 Develer S.r.l. (http://www.develer.com/) +# All rights reserved. +# +# Makefile fragment for DevLib lm3s1968 application. +# +# Author: Manuele Fanelli +# +# + +# Set to 1 for debug builds +lm3s1968_DEBUG = 0 + + +# Our target application +TRG += lm3s1968 + +lm3s1968_CSRC = \ + app/lm3s1968/lm3s1968.c \ + #bertos/cpu/cortex-m3/startup_lm3s.c + + +lm3s1968_CROSS = arm-none-eabi- + +lm3s1968_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug -mthumb +lm3s1968_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_LM3S1968__ -g3 -gdwarf-2 -fverbose-asm -mthumb -Iapp/lm3s1968 -Ibertos/cpu/cortex-m3 +lm3s1968_LDFLAGS = -nostartfiles -T app/lm3s1968/standalone.ld -Wl,--no-warn-mismatch + +lm3s1968_CPU = cortex-m3 +