source: rtems/c/src/lib/libbsp/arm/tms570/include/bsp.h @ 991fdb33

4.115
Last change on this file since 991fdb33 was 4407ee6, checked in by Premysl Houdek <kom541000@…>, on 08/20/14 at 15:24:23

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)

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @file bsp.h
3 *
4 * @ingroup tms570
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 * Copyright (c) 2014 Premysl Houdek <kom541000@gmail.com>
11 *
12 * Google Summer of Code 2014 at
13 * Czech Technical University in Prague
14 * Zikova 1903/4
15 * 166 36 Praha 6
16 * Czech Republic
17 *
18 * Based on LPC24xx and LPC1768 BSP
19 *
20 * The license and distribution terms for this file may be
21 * found in the file LICENSE in this distribution or at
22 * http://www.rtems.org/license/LICENSE.
23 */
24
25#ifndef LIBBSP_ARM_TMS570_BSP_H
26#define LIBBSP_ARM_TMS570_BSP_H
27
28#include <bspopts.h>
29
30#define BSP_FEATURE_IRQ_EXTENSION
31
32#ifndef ASM
33
34#include <rtems.h>
35#include <rtems/console.h>
36#include <rtems/clockdrv.h>
37#include <bsp/default-initial-extension.h>
38
39#define BSP_OSCILATOR_CLOCK 8000000
40#define BSP_PLL_OUT_CLOCK 160000000
41
42/** Define operation count for Tests */
43#define OPERATION_COUNT 4
44
45#ifdef __cplusplus
46extern "C" {
47#endif /* __cplusplus */
48
49struct rtems_bsdnet_ifconfig;
50
51/** @} */
52
53#ifdef __cplusplus
54}
55#endif /* __cplusplus */
56
57#endif /* ASM */
58
59#endif /* LIBBSP_ARM_TMS570_BSP_H */
Note: See TracBrowser for help on using the repository browser.