summaryrefslogtreecommitdiffstats
path: root/bsps/arm/lpc176x
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-22 08:52:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-15 13:12:05 +0200
commit762fa62ccaebadb7fa486da634c27b02960112b1 (patch)
treeeb762741aa291dd46578667e1533a71dcfc955b3 /bsps/arm/lpc176x
parentAdd _CPU_Counter_frequency() (diff)
downloadrtems-762fa62ccaebadb7fa486da634c27b02960112b1.tar.bz2
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.
Diffstat (limited to 'bsps/arm/lpc176x')
-rw-r--r--bsps/arm/lpc176x/start/system-clocks.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/bsps/arm/lpc176x/start/system-clocks.c b/bsps/arm/lpc176x/start/system-clocks.c
index 2ec58727eb..6af52be053 100644
--- a/bsps/arm/lpc176x/start/system-clocks.c
+++ b/bsps/arm/lpc176x/start/system-clocks.c
@@ -118,12 +118,3 @@ CPU_Counter_ticks _CPU_Counter_read( void )
{
return lpc176x_get_timer1();
}
-
-inline CPU_Counter_ticks _CPU_Counter_difference(
- CPU_Counter_ticks second,
- CPU_Counter_ticks first
-)
-{
- return second - first;
-}
-