Commit Graph

3 Commits

Author SHA1 Message Date
Sebastian Huber
762fa62cca 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.
2018-06-15 13:12:05 +02:00
Sebastian Huber
65f868cac6 Add _CPU_Counter_frequency()
Add rtems_counter_frequency() API function.  Use it to initialize the
counter value converter via the new system initialization step
(RTEMS_SYSINIT_CPU_COUNTER).  This decouples the counter implementation
and the counter converter.  It avoids an unnecessary pull in of the
64-bit integer division from libgcc.

Update #3456.
2018-06-15 13:02:44 +02:00
Sebastian Huber
d7a9eb90b6 bsps: Move armv7m-cpucounter.c to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-24 10:24:28 +02:00