aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8/serial_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-01 10:53:18 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-01 10:53:18 +0000
commit5da56bd07fca28900f9a53c51312be46d759e1d2 (patch)
treef4a0047927ae61466526c24c0bb71bad745cbf07 /os/hal/platforms/STM8/serial_lld.h
parenta9753ea48ac394028762b6a3fa9812e0092bb08e (diff)
downloadChibiOS-5da56bd07fca28900f9a53c51312be46d759e1d2.tar.gz
ChibiOS-5da56bd07fca28900f9a53c51312be46d759e1d2.tar.bz2
ChibiOS-5da56bd07fca28900f9a53c51312be46d759e1d2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2318 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8/serial_lld.h')
-rw-r--r--os/hal/platforms/STM8/serial_lld.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/platforms/STM8/serial_lld.h b/os/hal/platforms/STM8/serial_lld.h
index ee7848870..fc1e03c54 100644
--- a/os/hal/platforms/STM8/serial_lld.h
+++ b/os/hal/platforms/STM8/serial_lld.h
@@ -53,8 +53,8 @@
* @details If set to @p TRUE the support for UART1 is included.
* @note The default is @p TRUE.
*/
-#if !defined(USE_STM8_UART1) || defined(__DOXYGEN__)
-#define USE_STM8_UART1 TRUE
+#if !defined(STM8_SERIAL_USE_UART1) || defined(__DOXYGEN__)
+#define STM8_SERIAL_USE_UART1 TRUE
#endif
/**
@@ -62,8 +62,8 @@
* @details If set to @p TRUE the support for UART3 is included.
* @note The default is @p TRUE.
*/
-#if !defined(USE_STM8_UART2) || defined(__DOXYGEN__)
-#define USE_STM8_UART2 TRUE
+#if !defined(STM8_SERIAL_USE_UART2) || defined(__DOXYGEN__)
+#define STM8_SERIAL_USE_UART2 TRUE
#endif
/**
@@ -71,15 +71,15 @@
* @details If set to @p TRUE the support for UART3 is included.
* @note The default is @p TRUE.
*/
-#if !defined(USE_STM8_UART3) || defined(__DOXYGEN__)
-#define USE_STM8_UART3 TRUE
+#if !defined(STM8_SERIAL_USE_UART3) || defined(__DOXYGEN__)
+#define STM8_SERIAL_USE_UART3 TRUE
#endif
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
-#if USE_STM8_UART2 && USE_STM8_UART3
+#if STM8_SERIAL_USE_UART2 && STM8_SERIAL_USE_UART3
#error "STM8 UART2 and UART3 cannot be used together"
#endif
@@ -146,13 +146,13 @@ typedef struct {
/* External declarations. */
/*===========================================================================*/
-#if USE_STM8_UART1 && !defined(__DOXYGEN__)
+#if STM8_SERIAL_USE_UART1 && !defined(__DOXYGEN__)
extern SerialDriver SD1;
#endif
-#if USE_STM8_UART2 && !defined(__DOXYGEN__)
+#if STM8_SERIAL_USE_UART2 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif
-#if USE_STM8_UART3 && !defined(__DOXYGEN__)
+#if STM8_SERIAL_USE_UART3 && !defined(__DOXYGEN__)
extern SerialDriver SD3;
#endif