Changeset 46265063 in rtems for c/src/lib/libbsp/arm/tms570


Ignore:
Timestamp:
Aug 21, 2014, 1:38:24 PM (5 years ago)
Author:
Pavel Pisa <pisa@…>
Branches:
4.11, master
Children:
66f1ca6
Parents:
5787188
git-author:
Pavel Pisa <pisa@…> (08/21/14 13:38:24)
git-committer:
Joel Sherrill <joel.sherrill@…> (08/21/14 14:07:29)
Message:

bsp/tms570: implemented support functions to satisfy complete tests build requirements.

This patch enables to build all RTEMS tests for tms570ls3137_hdk_sdram
BSP variant in in default build. Debug build with --enable-rtems-debug set
has succeed for samples subset of tests as well.

Location:
c/src/lib/libbsp/arm/tms570
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/tms570/Makefile.am

    r5787188 r46265063  
    4040include_bsp_HEADERS += include/tms570-pom.h
    4141include_bsp_HEADERS += include/tms570-sci-driver.h
     42include_bsp_HEADERS += include/system-clocks.h
    4243
    4344include_HEADERS += ../../shared/include/tm27.h
     
    7980libbsp_a_SOURCES += ../../shared/sbrk.c
    8081libbsp_a_SOURCES += ../../shared/src/stackalloc.c
     82libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    8183
    8284# Startup
     
    106108libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
    107109libbsp_a_SOURCES += clock/clock.c
     110libbsp_a_SOURCES += clock/benchmark_timer.c
    108111
    109112# RTC
     
    116119
    117120# Misc
     121libbsp_a_SOURCES += misc/cpucounterread.c
    118122
    119123# Watchdog
     124
     125# Cache
     126libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
     127libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
     128libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
    120129
    121130# Start hooks
  • c/src/lib/libbsp/arm/tms570/clock/clock.c

    r5787188 r46265063  
    3030#include <bsp/irq.h>
    3131#include <bsp/tms570-rti.h>
     32#include <rtems/counter.h>
    3233
    3334/**
     
    4950
    5051  uint32_t microsec_per_tick = rtems_configuration_get_microseconds_per_tick();
     52
     53  rtems_counter_initialize_converter(BSP_PLL_OUT_CLOCK);
    5154
    5255  /* Hardware specific initialize */
     
    8184  TMS570_RTI.RTIINTFLAG = 0x00000001;
    8285  tms570_rti_last_tick_fcr0 = TMS570_RTI.RTICOMP0 - TMS570_RTI.RTIUDCP0;
    83   /* TMS570_RTI.RTICOMP0 += 1000; */
    8486}
    8587
  • c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk.cfg

    r5787188 r46265063  
    99CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
    1010
    11 CFLAGS_OPTIMIZE_V = -O2 -ggdb3 -DNDEBUG
     11CFLAGS_OPTIMIZE_V = -O2 -ggdb
    1212BINEXT?=.bin
    1313
  • c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_intram.cfg

    r5787188 r46265063  
    99CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
    1010
    11 CFLAGS_OPTIMIZE_V = -O2 -ggdb3 -DNDEBUG
     11CFLAGS_OPTIMIZE_V = -O2 -ggdb
    1212BINEXT?=.bin
    1313
  • c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_sdram.cfg

    r5787188 r46265063  
    99CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
    1010
    11 CFLAGS_OPTIMIZE_V = -O2 -ggdb3 -DNDEBUG
     11CFLAGS_OPTIMIZE_V = -O2 -ggdb
    1212BINEXT?=.bin
    1313
  • c/src/lib/libbsp/arm/tms570/preinstall.am

    r5787188 r46265063  
    110110PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/tms570-sci-driver.h
    111111
     112$(PROJECT_INCLUDE)/bsp/system-clocks.h: include/system-clocks.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/system-clocks.h
     114PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/system-clocks.h
     115
    112116$(PROJECT_INCLUDE)/tm27.h: ../../shared/include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
    113117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
Note: See TracChangeset for help on using the changeset viewer.