Changeset 762fa62 in rtems for c/src


Ignore:
Timestamp:
May 22, 2018, 6:52:13 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b0c3ba2f
Parents:
65f868c
git-author:
Sebastian Huber <sebastian.huber@…> (05/22/18 06:52:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/18 11:12:05)
Message:

arm: Simplify CPU counter support

Use the standard ARMv7-M systick module for the ARMv7-M CPU counter
instead of DWT counter since the DWT counter is affected by power saving
states.

Use an inline function for _CPU_Counter_difference() for all ARM BSPs.

Update #3456.

Location:
c/src/lib/libbsp/arm
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am

    r65f868c r762fa62  
    4444# Shared
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    46 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4746librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4847librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
  • c/src/lib/libbsp/arm/atsam/Makefile.am

    r65f868c r762fa62  
    3737librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3838librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    39 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4039librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4140librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/beagle/Makefile.am

    r65f868c r762fa62  
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
    4646librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/gpio/gpio-support.c
    47 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4847librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
    4948librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
  • c/src/lib/libbsp/arm/csb336/Makefile.am

    r65f868c r762fa62  
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2929librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    30 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3130librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/csb336/clock/clockdrv.c
    3231librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/csb336/btimer/btimer.c
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    r65f868c r762fa62  
    3737librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3838librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    39 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4039librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/csb337/start/pmc.c
    4140librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/csb337/clock/clock.c
  • c/src/lib/libbsp/arm/edb7312/Makefile.am

    r65f868c r762fa62  
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    28 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    2928
    3029# clock
  • c/src/lib/libbsp/arm/gdbarmsim/Makefile.am

    r65f868c r762fa62  
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2929librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    30 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3130# console
    3231librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-polled.c
  • c/src/lib/libbsp/arm/gumstix/Makefile.am

    r65f868c r762fa62  
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    29 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3029librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/gumstix/clock/clock.c
    3130librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/gumstix/btimer/btimer.c
  • c/src/lib/libbsp/arm/imx/Makefile.am

    r65f868c r762fa62  
    3232librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3333librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    34 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3534librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    3635librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
  • c/src/lib/libbsp/arm/lm3s69xx/Makefile.am

    r65f868c r762fa62  
    3737librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3838librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    39 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4039librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4140librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    r65f868c r762fa62  
    5656librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
    5757librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/uart-output-char.c
    58 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    5958
    6059# Startup
  • c/src/lib/libbsp/arm/lpc32xx/Makefile.am

    r65f868c r762fa62  
    4444librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    46 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4746librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4847librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    r65f868c r762fa62  
    4242librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    4343librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    44 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4544librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4645librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am

    r65f868c r762fa62  
    4141librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4242librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    43 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4443librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4544librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
  • c/src/lib/libbsp/arm/rtl22xx/Makefile.am

    r65f868c r762fa62  
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2929librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    30 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3130librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/rtl22xx/btimer/btimer.c
    3231librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/rtl22xx/clock/clockdrv.c
  • c/src/lib/libbsp/arm/smdk2410/Makefile.am

    r65f868c r762fa62  
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2929librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    30 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3130librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/smdk2410/btimer/btimer.c
    3231librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/smdk2410/clock/clockdrv.c
  • c/src/lib/libbsp/arm/stm32f4/Makefile.am

    r65f868c r762fa62  
    3636librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3737librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    38 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    3938librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4039librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/tms570/Makefile.am

    r65f868c r762fa62  
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4646librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
    47 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4847librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
    4948librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
  • c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am

    r65f868c r762fa62  
    3939librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4040librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    41 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4241librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    4342librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
Note: See TracChangeset for help on using the changeset viewer.