forked from Imagelibrary/rtems
bsps/arm: Add BSP_ARMV7M_SYSTICK_PRIORITY
This commit is contained in:
@@ -29,6 +29,8 @@ extern "C" {
|
||||
|
||||
#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT (5 << 5)
|
||||
|
||||
#define BSP_ARMV7M_SYSTICK_PRIORITY (6 << 5)
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
@@ -45,6 +45,8 @@ extern "C" {
|
||||
|
||||
#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT (29 << 3)
|
||||
|
||||
#define BSP_ARMV7M_SYSTICK_PRIORITY (30 << 3)
|
||||
|
||||
#define BSP_ARMV7M_SYSTICK_FREQUENCY LPC24XX_CCLK
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
@@ -49,12 +49,9 @@ static void _ARMV7M_Systick_handler(void)
|
||||
|
||||
static void _ARMV7M_Systick_handler_install(void)
|
||||
{
|
||||
_ARMV7M_Set_exception_priority(
|
||||
ARMV7M_VECTOR_SYSTICK,
|
||||
ARMV7M_EXCEPTION_PRIORITY_LOWEST
|
||||
);
|
||||
_ARMV7M_Set_exception_handler(
|
||||
_ARMV7M_Set_exception_priority_and_handler(
|
||||
ARMV7M_VECTOR_SYSTICK,
|
||||
BSP_ARMV7M_SYSTICK_PRIORITY,
|
||||
_ARMV7M_Systick_handler
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user