mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
arch/tricore: remove magic number in tr3xx uart config
Replace magic number with macro for better code readability. Signed-off-by: xiezhanpeng3 <xiezhanpeng3@lixiang.com>
This commit is contained in:
committed by
Matteo Golin
parent
c342c0851f
commit
6238da1355
@@ -34,6 +34,7 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Prototypes
|
||||
****************************************************************************/
|
||||
#define TRICORE_UART_RX_IRQ 21
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
||||
@@ -179,7 +179,7 @@ static struct up_dev_s g_uart0priv =
|
||||
.uartbase = &MODULE_ASCLIN0,
|
||||
.pins = &g_uart0_pins,
|
||||
.baud = CONFIG_UART0_BAUD,
|
||||
.irq = 21,
|
||||
.irq = TRICORE_UART_RX_IRQ,
|
||||
};
|
||||
|
||||
static uart_dev_t g_uart0port =
|
||||
|
||||
Reference in New Issue
Block a user