diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-04-23 10:37:10 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-04-23 10:37:10 +0000 |
commit | 0bc89b33d90203ab80056da972f5aa3ec762cd81 (patch) | |
tree | 2af7ae2972d717083815aa1b2a94b53c2a6bf19a | |
parent | 25d517877dd7725e67c2d094031a023c41ec6f05 (diff) | |
download | ChibiOS-0bc89b33d90203ab80056da972f5aa3ec762cd81.tar.gz ChibiOS-0bc89b33d90203ab80056da972f5aa3ec762cd81.tar.bz2 ChibiOS-0bc89b33d90203ab80056da972f5aa3ec762cd81.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@276 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | ports/ARM7/chtypes.h | 4 | ||||
-rw-r--r-- | ports/ARMCM3/chtypes.h | 4 | ||||
-rw-r--r-- | readme.txt | 4 | ||||
-rw-r--r-- | src/include/ch.h | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/ports/ARM7/chtypes.h b/ports/ARM7/chtypes.h index 2fd609b1f..1a5d9000d 100644 --- a/ports/ARM7/chtypes.h +++ b/ports/ARM7/chtypes.h @@ -28,7 +28,7 @@ #include <stdint.h>
#endif
-typedef int8_t bool_t;
+typedef int32_t bool_t;
typedef uint8_t tmode_t;
typedef uint8_t tstate_t;
typedef uint16_t tid_t;
@@ -39,6 +39,6 @@ typedef uint32_t eventmask_t; typedef uint32_t systime_t;
typedef int32_t cnt_t;
-#define INLINE inline
+#define INLINE inline
#endif /* _CHTYPES_H_ */
diff --git a/ports/ARMCM3/chtypes.h b/ports/ARMCM3/chtypes.h index 2fd609b1f..1a5d9000d 100644 --- a/ports/ARMCM3/chtypes.h +++ b/ports/ARMCM3/chtypes.h @@ -28,7 +28,7 @@ #include <stdint.h>
#endif
-typedef int8_t bool_t;
+typedef int32_t bool_t;
typedef uint8_t tmode_t;
typedef uint8_t tstate_t;
typedef uint16_t tid_t;
@@ -39,6 +39,6 @@ typedef uint32_t eventmask_t; typedef uint32_t systime_t;
typedef int32_t cnt_t;
-#define INLINE inline
+#define INLINE inline
#endif /* _CHTYPES_H_ */
diff --git a/readme.txt b/readme.txt index 102b321c6..db856f0e0 100644 --- a/readme.txt +++ b/readme.txt @@ -68,6 +68,8 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, by default, now the makefiles explictly assert -mno-thumb-interworking and
-mabi=apcs-gnu in order to produce better code. CodeSourcery's compilers
also share this behaviour.
+- In the ARM7 and ARMCM3 ports chanced the bool_t base type from int8_t to
+ int32_t, this produces a bit faster and smaller code.
*** 0.6.3 ***
- NEW: ARM Cortex-M3 port completed. The demo program targets the STM32F103
@@ -89,7 +91,7 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, example of C++ used for an embedded application. The demo does not use RTTI
nor standard libraries so the resulting code is very compact.
- Enhanced the chSemSignalWait() API to return the wakeup message just like
- the other "Wait" semaphore functions.
+ the other "Wait" semaphore functions do.
- Fixed a minor problem in the ARM7 port, the extctx structure definition was
missing one field, the effect was to allocate stacks 4 bytes shorter than
the declared size.
diff --git a/src/include/ch.h b/src/include/ch.h index 4f729a450..2dd44e786 100644 --- a/src/include/ch.h +++ b/src/include/ch.h @@ -98,7 +98,7 @@ #define FALSE 0
#endif
#ifndef TRUE
-#define TRUE 1
+#define TRUE (!FALSE)
#endif
#ifdef __cplusplus
|