aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/TIVA
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2015-04-16 22:15:15 +0200
committermarcoveeneman <marco-veeneman@hotmail.com>2015-04-16 22:15:15 +0200
commite5f1b8b034f66fa3aa4dd45f6c69da191e326c03 (patch)
tree447c82c78be84ea915c6a60e89b1509cf70d0588 /os/hal/ports/TIVA
parent5130840d32ee59d311d4875cb09edbd84facad71 (diff)
downloadChibiOS-Contrib-e5f1b8b034f66fa3aa4dd45f6c69da191e326c03.tar.gz
ChibiOS-Contrib-e5f1b8b034f66fa3aa4dd45f6c69da191e326c03.tar.bz2
ChibiOS-Contrib-e5f1b8b034f66fa3aa4dd45f6c69da191e326c03.zip
Tiva. ST. Moved ST interrupt priority check from hal_lld to st_lld.
Diffstat (limited to 'os/hal/ports/TIVA')
-rw-r--r--os/hal/ports/TIVA/LLD/st_lld.h5
-rw-r--r--os/hal/ports/TIVA/TM4C123x/hal_lld.h5
-rw-r--r--os/hal/ports/TIVA/TM4C129x/hal_lld.h5
3 files changed, 5 insertions, 10 deletions
diff --git a/os/hal/ports/TIVA/LLD/st_lld.h b/os/hal/ports/TIVA/LLD/st_lld.h
index bec1a36..23b3ef5 100644
--- a/os/hal/ports/TIVA/LLD/st_lld.h
+++ b/os/hal/ports/TIVA/LLD/st_lld.h
@@ -164,6 +164,11 @@
#error "wrong value defined for TIVA_ST_USE_WIDE_TIMER"
#endif
+#if OSAL_ST_MODE != OSAL_ST_MODE_NONE && \
+ !OSAL_IRQ_IS_VALID_PRIORITY(TIVA_ST_IRQ_PRIORITY)
+#error "Invalid IRQ priority assigned to ST"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
diff --git a/os/hal/ports/TIVA/TM4C123x/hal_lld.h b/os/hal/ports/TIVA/TM4C123x/hal_lld.h
index b81ace8..5c2cd25 100644
--- a/os/hal/ports/TIVA/TM4C123x/hal_lld.h
+++ b/os/hal/ports/TIVA/TM4C123x/hal_lld.h
@@ -329,11 +329,6 @@
*/
#define TIVA_SYSCLK (TIVA_SRC / (((TIVA_SYSDIV_VALUE << TIVA_DIV400_VALUE /*& TIVA_BYPASS_VALUE*/) | (TIVA_SYSDIV2LSB >> 22)) + 1))
-#if OSAL_ST_MODE == OSAL_ST_MODE_PERIODIC && \
- !OSAL_IRQ_IS_VALID_PRIORITY(TIVA_ST_IRQ_PRIORITY)
-#error "Invalid IRQ priority assigned to SysTick"
-#endif
-
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
diff --git a/os/hal/ports/TIVA/TM4C129x/hal_lld.h b/os/hal/ports/TIVA/TM4C129x/hal_lld.h
index a89a11d..dc6644f 100644
--- a/os/hal/ports/TIVA/TM4C129x/hal_lld.h
+++ b/os/hal/ports/TIVA/TM4C129x/hal_lld.h
@@ -344,11 +344,6 @@
*/
#define TIVA_SYSCLK 120000000
-#if OSAL_ST_MODE == OSAL_ST_MODE_PERIODIC && \
- !OSAL_IRQ_IS_VALID_PRIORITY(TIVA_ST_IRQ_PRIORITY)
-#error "Invalid IRQ priority assigned to SysTick"
-#endif
-
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/