aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-22 14:13:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-22 14:13:47 +0000
commitd70f0512714432cc81a9976c3c341a52288ebf53 (patch)
tree0e9194f1b54dcfac0f49660aca889c1fa845e3a7 /os
parent73be3d6450ed68aa4565066137add9013fbecdbc (diff)
downloadChibiOS-d70f0512714432cc81a9976c3c341a52288ebf53.tar.gz
ChibiOS-d70f0512714432cc81a9976c3c341a52288ebf53.tar.bz2
ChibiOS-d70f0512714432cc81a9976c3c341a52288ebf53.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5487 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h b/os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h
index 93fd94a10..9804507e9 100644
--- a/os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h
+++ b/os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h
@@ -82,6 +82,18 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if SPC5_USE_ESCIA && !SPC5_HAS_ESCIA
+#error "eSCI-A not present in the selected device"
+#endif
+
+#if SPC5_USE_ESCIB && !SPC5_HAS_ESCIB
+#error "eSCI-B not present in the selected device"
+#endif
+
+#if !SPC5_USE_ESCIA && !SPC5_USE_ESCIB
+#error "SERIAL driver activated but no eSCI peripheral assigned"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/