diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 20:56:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 20:56:12 +0000 |
commit | 0e6ef35d7faf0d0978120a502bf58f4c109ee948 (patch) | |
tree | f90cd2ddb2d5662b33ba53c9f9e7862839f7552b /nuttx/arch/hc | |
parent | b1d16090ec82c7a5b690e0cc6b493bf92ae81f7c (diff) | |
download | px4-nuttx-0e6ef35d7faf0d0978120a502bf58f4c109ee948.tar.gz px4-nuttx-0e6ef35d7faf0d0978120a502bf58f4c109ee948.tar.bz2 px4-nuttx-0e6ef35d7faf0d0978120a502bf58f4c109ee948.zip |
Add range of pointer integer types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2333 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/hc')
-rwxr-xr-x | nuttx/arch/hc/include/hc12/limits.h | 5 | ||||
-rwxr-xr-x | nuttx/arch/hc/include/hcs12/limits.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/arch/hc/include/hc12/limits.h b/nuttx/arch/hc/include/hc12/limits.h index 8d4d5f843..919ef1b28 100755 --- a/nuttx/arch/hc/include/hc12/limits.h +++ b/nuttx/arch/hc/include/hc12/limits.h @@ -83,4 +83,9 @@ #define LLONG_MIN 0x7fffffffffffffff #define ULLONG_MAX 0xffffffffffffffff +/* A pointer is 2 bytes */ + +#define PTR_MIN 0x0000 +#define PTR_MAX 0xffff + #endif /* __ARCH_HC_INCLUDE_HC12_LIMITS_H */ diff --git a/nuttx/arch/hc/include/hcs12/limits.h b/nuttx/arch/hc/include/hcs12/limits.h index d9ebaa94a..6fa85c4b4 100755 --- a/nuttx/arch/hc/include/hcs12/limits.h +++ b/nuttx/arch/hc/include/hcs12/limits.h @@ -83,4 +83,9 @@ #define LLONG_MIN 0x7fffffffffffffff #define ULLONG_MAX 0xffffffffffffffff +/* A pointer is 2 bytes */ + +#define PTR_MIN 0x0000 +#define PTR_MAX 0xffff + #endif /* __ARCH_HC_INCLUDE_HCS12_LIMITS_H */ |