STM32: add basic kdebug support.
[bertos.git] / bertos / cpu / cortex-m3 / drv / timer_cm3.h
index 6311d506caa0ccb83b11e2d44a1d590f1862273c..54bb4bebbeb378a8a85a2adb7c73c02a84f04a83 100644 (file)
@@ -84,7 +84,7 @@ INLINE bool timer_hw_triggered(void)
 
 INLINE hptime_t timer_hw_hpread(void)
 {
-       return HWREG(NVIC_ST_CURRENT);
+       return NVIC_ST_CURRENT_R;
 }
 
 void timer_hw_init(void);