mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add some UART configuration logic (still incomplete)
This commit is contained in:
@@ -88,8 +88,10 @@ Serial Console
|
|||||||
US2_TX #0 PC2 UIF_LED2
|
US2_TX #0 PC2 UIF_LED2
|
||||||
US2_TX #1 PB3 LCD_PB3, LCD_SEG20
|
US2_TX #1 PB3 LCD_PB3, LCD_SEG20
|
||||||
------- -- ----
|
------- -- ----
|
||||||
|
U0_RX #0 PF7 LCD_PF7, LCD_SEG25
|
||||||
U0_RX #1 PE1 **AVAILABLE at TP130** (if BC_EN is low, see below)
|
U0_RX #1 PE1 **AVAILABLE at TP130** (if BC_EN is low, see below)
|
||||||
U0_RX #2 PA4 LCD_PA4, LCD_SEG17
|
U0_RX #2 PA4 LCD_PA4, LCD_SEG17
|
||||||
|
U0_RX #3 PC15 MCUDBG_TDO_SWO
|
||||||
|
|
||||||
U0_TX #0 PF6 LCD_PF6, LCD_SEG24
|
U0_TX #0 PF6 LCD_PF6, LCD_SEG24
|
||||||
U0_TX #1 PE0 **AVAILABLE at TP129** (if BC_EN is low, see below)
|
U0_TX #1 PE0 **AVAILABLE at TP129** (if BC_EN is low, see below)
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "chip/efm32_cmu.h"
|
#include "chip/efm32_cmu.h"
|
||||||
|
#include "chip/efm32_usart.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-Processor Definitions
|
* Pre-Processor Definitions
|
||||||
@@ -193,6 +194,15 @@
|
|||||||
#define LED_ASSERTION 6 /* LED1 + LED2 + LED3 */
|
#define LED_ASSERTION 6 /* LED1 + LED2 + LED3 */
|
||||||
#define LED_PANIC 7 /* N/C + N/C + N/C + LED4 */
|
#define LED_PANIC 7 /* N/C + N/C + N/C + LED4 */
|
||||||
|
|
||||||
|
/* Pin routing **************************************************************/
|
||||||
|
/* UART0:
|
||||||
|
*
|
||||||
|
* U0_RX #1 PE1 **AVAILABLE at TP130**
|
||||||
|
* U0_TX #1 PE0 **AVAILABLE at TP129**
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define BOARD_UART0_ROUTE_LOCATION _USART_ROUTE_LOCATION_LOC1
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user