diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-12 18:59:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-12 18:59:49 +0000 |
commit | c62c1a4d629a8ec5094e2c964640d64a07fa6063 (patch) | |
tree | 44f69b06722c5079062fdd36b8fde0f358ab02f8 /os/hal/platforms/STM8L/hal_lld.h | |
parent | e889040710fe8e5ee4454b01803d0c8522f489f0 (diff) | |
download | ChibiOS-c62c1a4d629a8ec5094e2c964640d64a07fa6063.tar.gz ChibiOS-c62c1a4d629a8ec5094e2c964640d64a07fa6063.tar.bz2 ChibiOS-c62c1a4d629a8ec5094e2c964640d64a07fa6063.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2350 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8L/hal_lld.h')
-rw-r--r-- | os/hal/platforms/STM8L/hal_lld.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/os/hal/platforms/STM8L/hal_lld.h b/os/hal/platforms/STM8L/hal_lld.h index 8d658e6dc..45fcc29aa 100644 --- a/os/hal/platforms/STM8L/hal_lld.h +++ b/os/hal/platforms/STM8L/hal_lld.h @@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
/**
* @file STM8L/hal_lld.h
* @brief STM8L HAL subsystem low level driver source.
@@ -26,6 +27,11 @@ * - LSECLK (@p 0 if disabled or frequency in Hertz).
* - LSEBYPASS (@p TRUE if external oscillator rather than a crystal).
* .
+ * One of the following macros must also be defined:
+ * - STM8L15X_MD for Medium Density devices.
+ * - STM8L15X_MDP for Medium Density Plus devices.
+ * - STM8L15X_HD for High Density devices.
+ * .
*
* @addtogroup HAL
* @{
@@ -37,15 +43,21 @@ #undef FALSE
#undef TRUE
-#if defined (STM8L15X_MD) || defined (STM8L15X_MDP) || defined (STM8L15X_HD)
#include "stm8l15x.h"
-#else
-#error "unsupported or invalid STM8L platform"
-#endif
#define FALSE 0
#define TRUE (!FALSE)
+#if defined (STM8L15X_MD)
+#include "hal_lld_stm8l_md.h"
+#elif defined (STM8L15X_MDP)
+#include "hal_lld_stm8l_mdp.h"
+#elif defined (STM8L15X_HD)
+#include "hal_lld_stm8l_hd.h"
+#else
+#error "unspecified, unsupported or invalid STM8L platform"
+#endif
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
|