Changeset 762fa62 in rtems for bsps/arm/lpc176x


Ignore:
Timestamp:
May 22, 2018, 6:52:13 AM (22 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/lpc176x/start/system-clocks.c

    r65f868c r762fa62  
    119119  return lpc176x_get_timer1();
    120120}
    121 
    122 inline CPU_Counter_ticks _CPU_Counter_difference(
    123   CPU_Counter_ticks second,
    124   CPU_Counter_ticks first
    125 )
    126 {
    127   return second - first;
    128 }
    129 
Note: See TracChangeset for help on using the changeset viewer.