aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2015-04-16 22:03:13 +0200
committermarcoveeneman <marco-veeneman@hotmail.com>2015-04-16 22:03:13 +0200
commit5130840d32ee59d311d4875cb09edbd84facad71 (patch)
treefa4f6e6439cdbdb6fcee19f6272f7071d9db92ea /os/hal
parentcd95bc80f0ee01fe059164a072a5e51390429b8e (diff)
downloadChibiOS-Contrib-5130840d32ee59d311d4875cb09edbd84facad71.tar.gz
ChibiOS-Contrib-5130840d32ee59d311d4875cb09edbd84facad71.tar.bz2
ChibiOS-Contrib-5130840d32ee59d311d4875cb09edbd84facad71.zip
Tiva. MAC. Added check for valid interrupt priority.
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/TIVA/LLD/mac_lld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/TIVA/LLD/mac_lld.h b/os/hal/ports/TIVA/LLD/mac_lld.h
index 7c86dbd..af088b0 100644
--- a/os/hal/ports/TIVA/LLD/mac_lld.h
+++ b/os/hal/ports/TIVA/LLD/mac_lld.h
@@ -262,6 +262,10 @@
#error "TIVA_MAC_PHY_TIMEOUT requires the realtime counter service"
#endif
+#if !OSAL_IRQ_IS_VALID_PRIORITY(TIVA_MAC_IRQ_PRIORITY)
+#error "Invalid IRQ priority assigned to MAC"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/