diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-13 16:59:32 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-13 16:59:32 +0000 |
commit | bb6d225f57811ded378ffcb2457454decdb98e1c (patch) | |
tree | 1d4e61fd481495424d182664fccadd6b7942fb22 /os/hal/platforms/STM8L/serial_lld.h | |
parent | 1d6a32367685583864d10cba03102578e15f04c8 (diff) | |
download | ChibiOS-bb6d225f57811ded378ffcb2457454decdb98e1c.tar.gz ChibiOS-bb6d225f57811ded378ffcb2457454decdb98e1c.tar.bz2 ChibiOS-bb6d225f57811ded378ffcb2457454decdb98e1c.zip |
Initial STM8L support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2359 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8L/serial_lld.h')
-rw-r--r-- | os/hal/platforms/STM8L/serial_lld.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/os/hal/platforms/STM8L/serial_lld.h b/os/hal/platforms/STM8L/serial_lld.h index b523f048f..0447c91aa 100644 --- a/os/hal/platforms/STM8L/serial_lld.h +++ b/os/hal/platforms/STM8L/serial_lld.h @@ -167,6 +167,9 @@ typedef struct { } \
}
+/**
+ * @brief USART1 TX interrupt handler segment. + */
#define _USART1_TRANSMIT_ISR() { \
if (USART1->SR & USART_SR_TXE) { \
msg_t b; \
@@ -183,7 +186,7 @@ typedef struct { #if STM8L_SERIAL_USE_USART2 || defined(__DOXYGEN__)
/**
- * @brief USART1 RX interrupt handler segment. + * @brief USART2 RX interrupt handler segment. */
#define _USART2_RECEIVE_ISR() { \
uint8_t sr = USART2->SR; \
@@ -197,6 +200,9 @@ typedef struct { } \
}
+/**
+ * @brief USART2 TX interrupt handler segment. + */
#define _USART2_TRANSMIT_ISR() { \
if (USART2->SR & USART_SR_TXE) { \
msg_t b; \
@@ -213,7 +219,7 @@ typedef struct { #if STM8L_SERIAL_USE_USART3 || defined(__DOXYGEN__)
/**
- * @brief USART1 RX interrupt handler segment. + * @brief USART3 RX interrupt handler segment. */
#define _USART3_RECEIVE_ISR() { \
uint8_t sr = USART3->SR; \
@@ -227,6 +233,9 @@ typedef struct { } \
}
+/**
+ * @brief USART3 TX interrupt handler segment. + */
#define _USART3_TRANSMIT_ISR() { \
if (USART3->SR & USART_SR_TXE) { \
msg_t b; \
|