From e5f1b8b034f66fa3aa4dd45f6c69da191e326c03 Mon Sep 17 00:00:00 2001 From: marcoveeneman Date: Thu, 16 Apr 2015 22:15:15 +0200 Subject: Tiva. ST. Moved ST interrupt priority check from hal_lld to st_lld. --- os/hal/ports/TIVA/LLD/st_lld.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os/hal/ports/TIVA/LLD') 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. */ /*===========================================================================*/ -- cgit v1.2.3