diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-06-25 08:55:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-06-25 08:55:40 +0000 |
commit | 88bea4b8c200fad936c063718289250ce49cda61 (patch) | |
tree | 0c7cd93c45b07d4f9964f5c519afbf31b6c1fb34 /os/hal/platforms/STM8/stm8.h | |
parent | 62f4b7f471a4b1037468d382f927c5061e5fa9ed (diff) | |
download | ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.gz ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.bz2 ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2038 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8/stm8.h')
-rw-r--r-- | os/hal/platforms/STM8/stm8.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/os/hal/platforms/STM8/stm8.h b/os/hal/platforms/STM8/stm8.h index a91b3cbaf..d0ef215a4 100644 --- a/os/hal/platforms/STM8/stm8.h +++ b/os/hal/platforms/STM8/stm8.h @@ -20,22 +20,17 @@ #ifndef _STM8_H_
#define _STM8_H_
-/*
- * Supported platforms.
- */
-#define PLATFORM_STM8S208RB 1
-#define PLATFORM_STM8AF51AA 2
-
-#ifndef STM8_PLATFORM
-#error "STM8 platform not defined"
-#endif
+#undef FALSE
+#undef TRUE
-#if STM8_PLATFORM == PLATFORM_STM8S208RB
-#include "STM8/STM8S208RB.h"
-#elif STM8_PLATFORM == PLATFORM_STM8AF51AA
-#include "STM8/STM8AF51AA.h"
+#if defined(STM8S208) || defined(STM8S207) || defined(STM8S105) || \
+ defined(STM8S103) || defined (STM8S903)
+#include "stm8s.h"
#else
#error "unsupported or invalid STM8 platform"
#endif
+#define FALSE 0
+#define TRUE (!FALSE)
+
#endif /* _STM8_H_ */
|