[rtems commit] bsps/arm: Add BSP_ARMV7M_SYSTICK_PRIORITY
Sebastian Huber
sebh at rtems.org
Sat Apr 7 17:01:46 UTC 2012
Module: rtems
Branch: master
Commit: d8f05c837d41e9bf794f821b2e41ff8fd33b98e3
Changeset: http://git.rtems.org/rtems/commit/?id=d8f05c837d41e9bf794f821b2e41ff8fd33b98e3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 26 18:41:45 2012 +0200
bsps/arm: Add BSP_ARMV7M_SYSTICK_PRIORITY
---
c/src/lib/libbsp/arm/lm3s69xx/include/bsp.h | 2 ++
c/src/lib/libbsp/arm/lpc24xx/include/bsp.h | 2 ++
.../arm/shared/armv7m/clock/armv7m-clock-config.c | 7 ++-----
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/include/bsp.h b/c/src/lib/libbsp/arm/lm3s69xx/include/bsp.h
index 125504d..ed00487 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/include/bsp.h
+++ b/c/src/lib/libbsp/arm/lm3s69xx/include/bsp.h
@@ -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 */
diff --git a/c/src/lib/libbsp/arm/lpc24xx/include/bsp.h b/c/src/lib/libbsp/arm/lpc24xx/include/bsp.h
index 203a095..c14c00a 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/include/bsp.h
+++ b/c/src/lib/libbsp/arm/lpc24xx/include/bsp.h
@@ -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
diff --git a/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c b/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
index e126770..b27d5a6 100644
--- a/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
+++ b/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
@@ -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
);
}
More information about the vc
mailing list