diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
commit | c37fdc28c2cfdf41a549ba245c1cad85b757e53a (patch) | |
tree | 2812daa6196bae9eb0a4233aa1b28f6eb7902c44 /nuttx/arch/z80/include/ez80 | |
parent | a3933a716fd10ac4c87089ce7fac43ee24b3a2d4 (diff) | |
download | px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.gz px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.bz2 px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.zip |
Eliminate some hcs12 compile errors/warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/include/ez80')
-rw-r--r-- | nuttx/arch/z80/include/ez80/types.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/nuttx/arch/z80/include/ez80/types.h b/nuttx/arch/z80/include/ez80/types.h index f8de240c4..52c95ac6b 100644 --- a/nuttx/arch/z80/include/ez80/types.h +++ b/nuttx/arch/z80/include/ez80/types.h @@ -2,7 +2,7 @@ * arch/z80/include/ez80/types.h * include/arch/chip/types.h * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -15,7 +15,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -62,11 +62,6 @@ * long - 32-bits * char - 8-bits * float - 32-bits - * - * Pointers: - * - * Z80 mode - 16 bits - * ADL mode - 24 bits */ typedef char sbyte; @@ -80,6 +75,19 @@ typedef unsigned int uint24; typedef long sint32; typedef unsigned long uint32; +/* A pointer is 2 or 3 bytes, depending upon if the ez80 is in z80 + * compatibility mode or not + * + * Z80 mode - 16 bits + * ADL mode - 24 bits + */ + +#ifdef CONFIG_EZ80_Z80MODE +typedef unsigned short uintptr; +#else +typedef unsigned int uintptr; +#endif + /* This is the size of the interrupt state save returned by irqsave(). * It holds the AF regiser pair + a zero pad byte */ |