From d70f0512714432cc81a9976c3c341a52288ebf53 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 22 Mar 2013 14:13:47 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5487 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/SPC5xx/ESCI_v1/serial_lld.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'os') 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. */ /*===========================================================================*/ -- cgit v1.2.3