aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-29 11:34:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-29 11:34:24 +0000
commit03933a5925ac71e4662d6152fad2237377a532cd (patch)
treea93ec7105f2bbf62c9d2fd9dab6e582c51fc9f23
parentecbccffa627eca423c9780ab55d9ff737b69bd35 (diff)
downloadChibiOS-03933a5925ac71e4662d6152fad2237377a532cd.tar.gz
ChibiOS-03933a5925ac71e4662d6152fad2237377a532cd.tar.bz2
ChibiOS-03933a5925ac71e4662d6152fad2237377a532cd.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1356 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--demos/ARMCM3-STM32F103-FATFS-GCC/board.h10
-rw-r--r--demos/ARMCM3-STM32F103-GCC/board.h10
-rw-r--r--os/hal/platforms/STM32/hal_lld.h10
3 files changed, 10 insertions, 20 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/board.h b/demos/ARMCM3-STM32F103-FATFS-GCC/board.h
index 0f53e5b0e..bf04625c5 100644
--- a/demos/ARMCM3-STM32F103-FATFS-GCC/board.h
+++ b/demos/ARMCM3-STM32F103-FATFS-GCC/board.h
@@ -21,16 +21,6 @@
#define _BOARD_H_
/*
- * Tricks required to make the TRUE/FALSE declaration inside the library
- * compatible.
- */
-#undef FALSE
-#undef TRUE
-#include <stm32f10x.h>
-#define FALSE 0
-#define TRUE (!FALSE)
-
-/*
* Uncomment this if you want a 48MHz system clock, else it will be 72MHz.
*/
//#define SYSCLK_48
diff --git a/demos/ARMCM3-STM32F103-GCC/board.h b/demos/ARMCM3-STM32F103-GCC/board.h
index 0f53e5b0e..bf04625c5 100644
--- a/demos/ARMCM3-STM32F103-GCC/board.h
+++ b/demos/ARMCM3-STM32F103-GCC/board.h
@@ -21,16 +21,6 @@
#define _BOARD_H_
/*
- * Tricks required to make the TRUE/FALSE declaration inside the library
- * compatible.
- */
-#undef FALSE
-#undef TRUE
-#include <stm32f10x.h>
-#define FALSE 0
-#define TRUE (!FALSE)
-
-/*
* Uncomment this if you want a 48MHz system clock, else it will be 72MHz.
*/
//#define SYSCLK_48
diff --git a/os/hal/platforms/STM32/hal_lld.h b/os/hal/platforms/STM32/hal_lld.h
index fc29c2824..455a65b32 100644
--- a/os/hal/platforms/STM32/hal_lld.h
+++ b/os/hal/platforms/STM32/hal_lld.h
@@ -27,6 +27,16 @@
#ifndef _HAL_LLD_H_
#define _HAL_LLD_H_
+/*
+ * Tricks required to make the TRUE/FALSE declaration inside the library
+ * compatible.
+ */
+#undef FALSE
+#undef TRUE
+#include <stm32f10x.h>
+#define FALSE 0
+#define TRUE (!FALSE)
+
#include "nvic.h"
#include "stm32_dma.h"