From 4407ee675cb22e8bb870a76eafc590eb6e754315 Mon Sep 17 00:00:00 2001 From: Premysl Houdek Date: Wed, 20 Aug 2014 17:24:23 +0200 Subject: BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137) Included variants: tms570ls3137_hdk_intram - place code and data into internal SRAM tms570ls3137_hdk_sdram - place code into external SDRAM and data to SRAM tms570ls3137_hdk - variant prepared for stand-alone RTEMS aplication stored and running directly from flash. Not working yet. Chip initialization code not included in BSP. External startup generated by TI's HalCoGen was used for testing and debugging. More information about TMS570 BSP can be found at http://www.rtems.org/wiki/index.php/Tms570 Patch version 2 - most of the formatting suggestion applied. - BSP converted to use clock shell - console driver "set attributes" tested. Baudrate change working Patch version 3 - more formatting changes. - removed leftover defines and test functions Todo: refactor header files (name register fields) --- c/src/lib/libbsp/arm/tms570/startup/bspreset.c | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 c/src/lib/libbsp/arm/tms570/startup/bspreset.c (limited to 'c/src/lib/libbsp/arm/tms570/startup/bspreset.c') diff --git a/c/src/lib/libbsp/arm/tms570/startup/bspreset.c b/c/src/lib/libbsp/arm/tms570/startup/bspreset.c new file mode 100644 index 0000000000..d47920c485 --- /dev/null +++ b/c/src/lib/libbsp/arm/tms570/startup/bspreset.c @@ -0,0 +1,36 @@ +/** + * @file bspreset.c + * + * @ingroup tms570 + * + * @brief Reset code. + */ + +/* + * Copyright (c) 2014 Premysl Houdek + * + * Google Summer of Code 2014 at + * Czech Technical University in Prague + * Zikova 1903/4 + * 166 36 Praha 6 + * Czech Republic + * + * Based on LPC24xx and LPC1768 BSP + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#include + +#include +#include +#include + +BSP_START_TEXT_SECTION __attribute__( ( flatten ) ) void bsp_reset( void ) +{ + while ( true ) { + /* Do nothing */ + } +} -- cgit v1.2.3