From 86acf7daf6a6f867964e7d736b21ee923ab66ebe Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 5 Nov 2008 21:43:21 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@500 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- docs/reports/MSP430F1611-0.75.txt | 4 ---- readme.txt | 3 +++ src/include/debug.h | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/reports/MSP430F1611-0.75.txt b/docs/reports/MSP430F1611-0.75.txt index 88ce0dde1..2bd16df83 100644 --- a/docs/reports/MSP430F1611-0.75.txt +++ b/docs/reports/MSP430F1611-0.75.txt @@ -71,9 +71,5 @@ Settings: MCLK=DCOCLK 750Khz --- Score : 5432 bytes/S --- Result: SUCCESS --------------------------------------------------------------------------- ---- Test Case 20 (Benchmark, virtual timers set/reset) ---- Score : 5636 timers/S ---- Result: SUCCESS ---------------------------------------------------------------------------- Final result: SUCCESS diff --git a/readme.txt b/readme.txt index b2508d42c..a3375fbb5 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,9 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, ***************************************************************************** *** 0.7.4 *** +- CHANGE: Modified chDbgAssert() to syntax check the condition even when the + CH_USE_DEBUG is disabled, it produces no code but allows to check the + option without have to compile twice. - Added a new benchmark to the test suite (timers set/reset performance). - Renamed the macro fifo_init() to queue_init() because it is used to init both FIFO queues and priority queues. diff --git a/src/include/debug.h b/src/include/debug.h index 245e4dced..783709062 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -57,7 +57,6 @@ extern char *dbglastmsg; extern "C" { #endif void chDbgInit(void); - void chDbgPuts(char *msg); void chDbgPanic(char *msg); #ifdef __cplusplus } @@ -80,7 +79,7 @@ extern "C" { #define chDbgInit() #define chDbgPanic(msg) {} -#define chDbgAssert(c, m) {} +#define chDbgAssert(c, m) {(void)(c);} #endif /* CH_USE_DEBUG */