mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 15:05:07 +00:00
arch/tricore: Fix specific definitions in the generic UART module
We found that specific chip pin definitions were used in the generic UART source file. Since pin definitions vary across different chips, the UART pin definitions have been moved to the corresponding chip-specific directory. Co-authored-by: Chengdong Wang <wangchengdong@lixiang.com> Signed-off-by: Qinshuo Duan <duanqinshuo@lixiang.com>
This commit is contained in:
parent
f98d89874c
commit
0b9c86905b
2 changed files with 5 additions and 3 deletions
|
|
@ -27,4 +27,7 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#define UART_PIN_RX IfxAsclin0_RXA_P14_1_IN /* UART receive port pin */
|
||||
#define UART_PIN_TX IfxAsclin0_TX_P14_0_OUT /* UART transmit port pin */
|
||||
|
||||
#endif /* __ARCH_TRICORE_SRC_TC397_CHIP_H */
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@
|
|||
|
||||
#include "Asclin/Asc/IfxAsclin_Asc.h"
|
||||
|
||||
#include <chip.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
|
@ -160,9 +162,6 @@ static char g_uart0txbuffer[CONFIG_UART0_TXBUFSIZE];
|
|||
|
||||
#ifdef CONFIG_TC3XX_UART0
|
||||
|
||||
#define UART_PIN_RX IfxAsclin0_RXA_P14_1_IN /* UART receive port pin */
|
||||
#define UART_PIN_TX IfxAsclin0_TX_P14_0_OUT /* UART transmit port pin */
|
||||
|
||||
/* Pin configuration */
|
||||
|
||||
static const IfxAsclin_Asc_Pins g_uart0_pins =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue