X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Ftimer_cm3.h;h=54bb4bebbeb378a8a85a2adb7c73c02a84f04a83;hb=9894dd2c3a530cf89e5f8011b88a5c18be836e1b;hp=6311d506caa0ccb83b11e2d44a1d590f1862273c;hpb=dc9b8ecb40cb399616ef3044b7c1b29cf9cf76b4;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/timer_cm3.h b/bertos/cpu/cortex-m3/drv/timer_cm3.h index 6311d506..54bb4beb 100644 --- a/bertos/cpu/cortex-m3/drv/timer_cm3.h +++ b/bertos/cpu/cortex-m3/drv/timer_cm3.h @@ -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);