summaryrefslogtreecommitdiff
path: root/nuttx/arch/pjrc-8051
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-13 15:13:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-13 15:13:37 +0000
commitc37fdc28c2cfdf41a549ba245c1cad85b757e53a (patch)
tree2812daa6196bae9eb0a4233aa1b28f6eb7902c44 /nuttx/arch/pjrc-8051
parenta3933a716fd10ac4c87089ce7fac43ee24b3a2d4 (diff)
downloadpx4-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/pjrc-8051')
-rw-r--r--nuttx/arch/pjrc-8051/include/types.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/nuttx/arch/pjrc-8051/include/types.h b/nuttx/arch/pjrc-8051/include/types.h
index fad90f25d..f334b176f 100644
--- a/nuttx/arch/pjrc-8051/include/types.h
+++ b/nuttx/arch/pjrc-8051/include/types.h
@@ -1,7 +1,7 @@
/************************************************************
- * types.h
+ * arch/types.h
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,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.
*
@@ -58,9 +58,6 @@
*
* For SDCC, sizeof(int) is 16 and sizeof(long) is 32.
* long long and double are not supported.
- *
- * Generic pointers are 3 bytes in length with the
- * first byte holding data space intformation.
*/
typedef char sbyte;
@@ -72,6 +69,12 @@ typedef unsigned int uint16;
typedef long sint32;
typedef unsigned long uint32;
+/* For SDCC, a Generic pointer is 3 bytes in length with the
+ * first byte holding data space information.
+ */
+
+typedef unsigned long uintptr;
+
/* This is the size of the interrupt state save returned by
* irqsave()
*/