15 #ifndef BSP_CLOCK_ARMV7M_H 16 #define BSP_CLOCK_ARMV7M_H 27 #ifdef ARM_MULTILIB_ARCH_V7M 34 extern ARMV7M_Timecounter _ARMV7M_TC;
36 static inline uint32_t _ARMV7M_Clock_frequency(
void)
38 #ifdef BSP_ARMV7M_SYSTICK_FREQUENCY 39 return BSP_ARMV7M_SYSTICK_FREQUENCY;
41 volatile ARMV7M_Systick *systick = _ARMV7M_Systick;
42 return ARMV7M_SYSTICK_CALIB_TENMS_GET(systick->calib) * 100;
46 static uint32_t _ARMV7M_Clock_counter(ARMV7M_Timecounter *tc)
48 volatile ARMV7M_Systick *systick;
56 systick = _ARMV7M_Systick;
57 counter = systick->cvr;
59 interval = systick->rvr;
63 counter = systick->cvr;
68 counter = interval - counter + ticks;
ARMV7M Architecture Support.
#define rtems_interrupt_disable(_isr_cookie)
Disable RTEMS Interrupt.
Definition: intr.h:99
#define rtems_interrupt_enable(_isr_cookie)
Enable RTEMS Interrupt.
Definition: intr.h:110
ISR_Level rtems_interrupt_level
Interrupt level type.
Definition: intr.h:42
#define RTEMS_PREDICT_FALSE(_exp)
Returns the value of the specified integral expression and tells the compiler that the predicted valu...
Definition: basedefs.h:388