summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-06 17:48:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-06 17:48:56 +0000
commitdcea5f0360725d2c25b61eefe9db7b2474b26dd6 (patch)
treeb0aee7184c85c0e94f64d214af29a567e831961e /nuttx/arch
parent4011b03fa6a6a7889efea3451a3a125faa72c7fc (diff)
downloadpx4-nuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.tar.gz
px4-nuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.tar.bz2
px4-nuttx-dcea5f0360725d2c25b61eefe9db7b2474b26dd6.zip
Remove user_initialize(); Make sure all integer types are signed that need to be
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3474 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/8051/include/types.h8
-rw-r--r--nuttx/arch/arm/include/types.h14
-rw-r--r--nuttx/arch/avr/include/types.h12
-rwxr-xr-xnuttx/arch/hc/include/hc12/types.h12
-rwxr-xr-xnuttx/arch/hc/include/hcs12/types.h12
-rw-r--r--nuttx/arch/sh/include/m16c/types.h10
-rw-r--r--nuttx/arch/sh/include/sh1/types.h10
-rw-r--r--nuttx/arch/sim/include/types.h10
-rwxr-xr-xnuttx/arch/x86/include/i486/types.h10
-rw-r--r--nuttx/arch/z16/include/types.h8
-rw-r--r--nuttx/arch/z80/include/ez80/types.h12
-rw-r--r--nuttx/arch/z80/include/z8/types.h8
-rw-r--r--nuttx/arch/z80/include/z80/types.h8
13 files changed, 67 insertions, 67 deletions
diff --git a/nuttx/arch/8051/include/types.h b/nuttx/arch/8051/include/types.h
index 7495513b2..2d195631a 100644
--- a/nuttx/arch/8051/include/types.h
+++ b/nuttx/arch/8051/include/types.h
@@ -67,20 +67,20 @@
* long long and double are not supported.
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef int _int16_t;
+typedef signed int _int16_t;
typedef unsigned int _uint16_t;
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
/* For SDCC, a Generic pointer is 3 bytes in length with the
* first byte holding data space information.
*/
-typedef long _intptr_t;
+typedef signed long _intptr_t;
typedef unsigned long _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/arm/include/types.h b/nuttx/arch/arm/include/types.h
index 9a45fcb75..c3471ca59 100644
--- a/nuttx/arch/arm/include/types.h
+++ b/nuttx/arch/arm/include/types.h
@@ -63,22 +63,22 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 4 bytes */
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave(). For
@@ -87,9 +87,9 @@ typedef unsigned int _uintptr_t;
*/
#ifdef __thumb2__
-typedef unsigned short irqstate_t;
+typedef unsigned short irqstate_t;
#else /* __thumb2__ */
-typedef unsigned int irqstate_t;
+typedef unsigned int irqstate_t;
#endif /* __thumb2__ */
#endif /* __ASSEMBLY__ */
diff --git a/nuttx/arch/avr/include/types.h b/nuttx/arch/avr/include/types.h
index fd8c394c4..c93e70df4 100644
--- a/nuttx/arch/avr/include/types.h
+++ b/nuttx/arch/avr/include/types.h
@@ -63,27 +63,27 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 4 bytes */
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave(). */
-typedef unsigned int irqstate_t;
+typedef unsigned int irqstate_t;
#endif /* __ASSEMBLY__ */
diff --git a/nuttx/arch/hc/include/hc12/types.h b/nuttx/arch/hc/include/hc12/types.h
index f29be6394..d676e3d27 100755
--- a/nuttx/arch/hc/include/hc12/types.h
+++ b/nuttx/arch/hc/include/hc12/types.h
@@ -63,9 +63,9 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
/* Normally, mc68hc1x code is compiled with the -mshort option
@@ -74,20 +74,20 @@ typedef unsigned short _uint16_t;
*/
# if __INT__ == 16
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
#else
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
#endif
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is two bytes */
-typedef short _intptr_t;
+typedef signed short _intptr_t;
typedef unsigned short _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave()*/
diff --git a/nuttx/arch/hc/include/hcs12/types.h b/nuttx/arch/hc/include/hcs12/types.h
index 71b311fb7..739ddef21 100755
--- a/nuttx/arch/hc/include/hcs12/types.h
+++ b/nuttx/arch/hc/include/hcs12/types.h
@@ -63,10 +63,10 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
/* Normally, mc68hc1x code is compiled with the -mshort option
@@ -75,20 +75,20 @@ typedef unsigned short _uint16_t;
*/
# if __INT__ == 16
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
#else
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
#endif
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is two bytes */
-typedef short _intptr_t;
+typedef signed short _intptr_t;
typedef unsigned short _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave()*/
diff --git a/nuttx/arch/sh/include/m16c/types.h b/nuttx/arch/sh/include/m16c/types.h
index d14812860..4f84a3113 100644
--- a/nuttx/arch/sh/include/m16c/types.h
+++ b/nuttx/arch/sh/include/m16c/types.h
@@ -65,22 +65,22 @@
* int is 16-bits and long is 32-bits
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef int _int16_t;
+typedef signed int _int16_t;
typedef unsigned int _uint16_t;
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 2 bytes */
-typedef unsigned int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/sh/include/sh1/types.h b/nuttx/arch/sh/include/sh1/types.h
index 79ed1a181..ac0769ecd 100644
--- a/nuttx/arch/sh/include/sh1/types.h
+++ b/nuttx/arch/sh/include/sh1/types.h
@@ -63,22 +63,22 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 4 bytes */
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/sim/include/types.h b/nuttx/arch/sim/include/types.h
index 214fbb91b..5b58264e6 100644
--- a/nuttx/arch/sim/include/types.h
+++ b/nuttx/arch/sim/include/types.h
@@ -63,22 +63,22 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 4 bytes */
-typedef unsigned int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/x86/include/i486/types.h b/nuttx/arch/x86/include/i486/types.h
index 88379fd0f..d6f25f3e0 100755
--- a/nuttx/arch/x86/include/i486/types.h
+++ b/nuttx/arch/x86/include/i486/types.h
@@ -64,22 +64,22 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
-typedef long long _int64_t;
+typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
/* A pointer is 4 bytes */
-typedef unsigned int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/z16/include/types.h b/nuttx/arch/z16/include/types.h
index b83a6070d..536cb52a7 100644
--- a/nuttx/arch/z16/include/types.h
+++ b/nuttx/arch/z16/include/types.h
@@ -63,18 +63,18 @@
* files
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int32_t;
+typedef signed int _int32_t;
typedef unsigned int _uint32_t;
/* A pointer is 4 bytes */
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by
diff --git a/nuttx/arch/z80/include/ez80/types.h b/nuttx/arch/z80/include/ez80/types.h
index 4ca48e697..f3569d9ba 100644
--- a/nuttx/arch/z80/include/ez80/types.h
+++ b/nuttx/arch/z80/include/ez80/types.h
@@ -72,17 +72,17 @@
* float - 32-bits
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef short _int16_t;
+typedef signed short _int16_t;
typedef unsigned short _uint16_t;
-typedef int _int24_t;
+typedef signed int _int24_t;
typedef unsigned int _uint24_t;
#define __INT24_DEFINED
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
/* A pointer is 2 or 3 bytes, depending upon if the ez80 is in z80
@@ -93,10 +93,10 @@ typedef unsigned long _uint32_t;
*/
#ifdef CONFIG_EZ80_Z80MODE
-typedef short _intptr_t;
+typedef signed short _intptr_t;
typedef unsigned short _uintptr_t;
#else
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
#endif
diff --git a/nuttx/arch/z80/include/z8/types.h b/nuttx/arch/z80/include/z8/types.h
index 0e269a5de..324ca236c 100644
--- a/nuttx/arch/z80/include/z8/types.h
+++ b/nuttx/arch/z80/include/z8/types.h
@@ -79,18 +79,18 @@
* rom pointer - 16-bits
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef int _int16_t;
+typedef signed int _int16_t;
typedef unsigned int _uint16_t;
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
/* A pointer is 2 bytes */
-typedef unsigned int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave() */
diff --git a/nuttx/arch/z80/include/z80/types.h b/nuttx/arch/z80/include/z80/types.h
index 652ea5adf..42bba5ac8 100644
--- a/nuttx/arch/z80/include/z80/types.h
+++ b/nuttx/arch/z80/include/z80/types.h
@@ -72,18 +72,18 @@
* space information.
*/
-typedef char _int8_t;
+typedef signed char _int8_t;
typedef unsigned char _uint8_t;
-typedef int _int16_t;
+typedef signed int _int16_t;
typedef unsigned int _uint16_t;
-typedef long _int32_t;
+typedef signed long _int32_t;
typedef unsigned long _uint32_t;
/* A pointer is 2 bytes */
-typedef int _intptr_t;
+typedef signed int _intptr_t;
typedef unsigned int _uintptr_t;
/* This is the size of the interrupt state save returned by irqsave() */