From 12e34ee390b0cd1133947b7a091ab0259ab507d1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 10 Jan 2013 12:53:00 +0000 Subject: [PATCH] Removed dependency to ch.h. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5049 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/ARMCMx/crt0.c | 10 +++++++++- readme.txt | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/os/ports/GCC/ARMCMx/crt0.c b/os/ports/GCC/ARMCMx/crt0.c index c1d32ba84..2d6c016bd 100644 --- a/os/ports/GCC/ARMCMx/crt0.c +++ b/os/ports/GCC/ARMCMx/crt0.c @@ -26,7 +26,15 @@ * @{ */ -#include "ch.h" +#include + +#if !defined(FALSE) +#define FALSE 0 +#endif + +#if !defined(TRUE) +#define TRUE (!FALSE) +#endif typedef void (*funcp_t)(void); typedef funcp_t * funcpp_t; diff --git a/readme.txt b/readme.txt index 0e54caa6c..a787cfac3 100644 --- a/readme.txt +++ b/readme.txt @@ -94,7 +94,7 @@ - FIX: Fixed PHY powerdown issues not fixed (bug 3596911). - NEW: Added an abstract file system interface written in C++, no implementations yet. - TODO: Create a descendant interface for hyerarchical file systems. + TODO: Create a descendant interface for hierarchical file systems. TODO: Create a FatFS wrapper implementing the interface and using a server thread for synchronization. TODO: Create an implementation over a read-only file system in code space. @@ -110,6 +110,8 @@ - NEW: Added EXT driver to the STM32F3xx platform. - NEW: Improved the STM32 EXT driver to support more than 32 channels. - NEW: Added support for Olimex board STM32-LCD. +- CHANGE: Removed dependency between crt0.c (GCC-ARMCMx) and the kernel + header ch.h. *** 2.5.1 *** - FIX: Fixed typo in chOQGetEmptyI() macro (bug 3595910)(backported to 2.2.10