From 0bc89b33d90203ab80056da972f5aa3ec762cd81 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 23 Apr 2008 10:37:10 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@276 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7/chtypes.h | 4 ++-- ports/ARMCM3/chtypes.h | 4 ++-- readme.txt | 4 +++- 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 #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 #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