bsps/arm: Add BSP_ARMV7M_SYSTICK_PRIORITY

This commit is contained in:
Sebastian Huber
2012-03-26 18:41:45 +02:00
parent 5ea637ed2e
commit d8f05c837d
3 changed files with 6 additions and 5 deletions

View File

@@ -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 */

View File

@@ -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

View File

@@ -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
);
}