summaryrefslogtreecommitdiffstats
path: root/bsps/shared/dev/cpucounter (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify _CPU_Counter_difference()Sebastian Huber2018-12-071-23/+0
| | | | | | | | | | | | | | In order to simplify the use of CPU counter values it is beneficial to have monotonic increasing values within the range of the CPU counter ticks data type, e.g. 32-bit unsigned integer. This eases the use of CPU counter timestamps in external tools which do not know the details of the CPU counter hardware. The CPU counter is the fastest way to get a time on an RTEMS system. Such a CPU counter may be also used as the timecounter. Use it on SPARC for this purpose to simplify the clock drivers. Update #3456.
* Add _CPU_Counter_frequency()Sebastian Huber2018-06-151-0/+20
| | | | | | | | | | 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.
* bsps: Move shared CPU counter support to bspsSebastian Huber2018-04-202-0/+50
This patch is a part of the BSP source reorganization. Update #3285.