summaryrefslogtreecommitdiff
path: root/bsp/efm32/drv_usart.h
diff options
context:
space:
mode:
authoronelife.real <[email protected]>2011-12-16 01:05:50 +0000
committeronelife.real <[email protected]>2011-12-16 01:05:50 +0000
commit3c3b3697ad4d3e08cfd2c98e03e8f877e0211337 (patch)
treee28dfb9eee52c31c8f3d23bd57484596c11b185c /bsp/efm32/drv_usart.h
parent44b3b3ad87733ec82c0e2af64faa3882c6fe6f9a (diff)
*** EFM32 branch ***
1. Upgrade EFM32 driver libraries (CMSIS and efm32lib) to version 2.3.0 (from version 2.2.2) 2. Add EFM32GG-DK3750 development kit support (driver version 1.2.1) 3. Add giant gecko (EFM32GG) support 4. Add LEUART module driver (max 9600bsp) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1839 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/efm32/drv_usart.h')
-rw-r--r--bsp/efm32/drv_usart.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/bsp/efm32/drv_usart.h b/bsp/efm32/drv_usart.h
index 89b1fb455d..5ad28b7b5e 100644
--- a/bsp/efm32/drv_usart.h
+++ b/bsp/efm32/drv_usart.h
@@ -6,15 +6,17 @@
* @version 0.4 beta
*******************************************************************************
* @section License
- * The license and distribution terms for this file may be found in the file
+ * The license and distribution terms for this file may be found in the file
* LICENSE in this distribution or at http://www.rt-thread.org/license/LICENSE
*******************************************************************************
* @section Change Logs
* Date Author Notes
* 2010-12-22 onelife Initial creation for EFM32
* 2011-06-27 onelife Fix a bug when using compiler optimization
- * 2011-07-26 onelife Add lock (semaphore) to prevent simultaneously
+ * 2011-07-26 onelife Add lock (semaphore) to prevent simultaneously
* access
+ * 2011-12-09 onelife Add giant gecko support
+ * 2011-12-09 onelife Add UART module support
******************************************************************************/
#ifndef __DRV_USART_H__
#define __DRV_USART_H__
@@ -61,11 +63,12 @@ struct efm32_usart_device_t
#define USART_WAIT_TIME_TX (RT_TICK_PER_SECOND / 100 * 3)
#define USART_STATE_CONSOLE (1 << 0)
-#define USART_STATE_SYNC (1 << 1)
-#define USART_STATE_MASTER (1 << 2)
-#define USART_STATE_AUTOCS (1 << 3)
-#define USART_STATE_TX_BUSY (1 << 4)
-#define USART_STATE_RX_BUSY (1 << 5)
+#define USART_STATE_ASYNC_ONLY (1 << 1)
+#define USART_STATE_SYNC (1 << 2)
+#define USART_STATE_MASTER (1 << 3)
+#define USART_STATE_AUTOCS (1 << 4)
+#define USART_STATE_TX_BUSY (1 << 5)
+#define USART_STATE_RX_BUSY (1 << 6)
/* Exported functions ------------------------------------------------------- */