From 3898cf0678914b92d12493936d173dc6bd041abd Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 14 Feb 2008 00:31:37 +0000 Subject: Resolve header file incompatibility git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@680 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/z80/include/z8/irq.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'nuttx/arch/z80/include') diff --git a/nuttx/arch/z80/include/z8/irq.h b/nuttx/arch/z80/include/z8/irq.h index 2e72f987b..92b232295 100644 --- a/nuttx/arch/z80/include/z8/irq.h +++ b/nuttx/arch/z80/include/z8/irq.h @@ -45,12 +45,31 @@ * Included Files ****************************************************************************/ -#include - /**************************************************************************** * Definitions ****************************************************************************/ +/* This is similar configuration information that is contained in ez8.h. + * However, this file must be include-able by assembly language files and, + * hence, cannot include ez8.h. The logic is fragmentary at present. + */ + +#if defined(_Z8ENCORE_F642X) || defined(_Z8ENCORE_64K_SERIES) +# define ENCORE_VECTORS +#endif + +#if defined(_Z8ENCORE_F640X) || defined(_Z8ENCORE_640_FAMILY) +# define ENCORE_VECTORS +#endif + +#if defined(_Z8ENCORE_F08X) || defined(_Z8ENCORE_8K_SERIES) +# define ENCORE_VECTORS +#endif + +#if defined(_Z8ENCORE_4K_SERIES) +# define ENCORE_VECTORS +#endif + /* ez8 Interrupt Numbers */ #if defined(ENCORE_VECTORS) -- cgit v1.2.3