1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/msba2: configure remaining UARTs

All UARTs on the MSBA2 are exposed through pin headers on the board.
Configure them according to the data sheet.
This commit is contained in:
Benjamin Valentin 2019-11-04 01:46:14 +01:00
parent 90aef98ca0
commit 9e68556393
2 changed files with 27 additions and 3 deletions

View File

@ -87,10 +87,34 @@ static const uart_conf_t uart_config[] = {
.pinsel_tx = 0,
.pinsel_msk_rx = BIT4,
.pinsel_msk_tx = BIT6,
}
},
{
.dev = UART1,
.irq_prio_rx = 6,
.pinsel_rx = 4,
.pinsel_tx = 4,
.pinsel_msk_rx = BIT3,
.pinsel_msk_tx = BIT1,
},
{
.dev = UART2,
.irq_prio_rx = 6,
.pinsel_rx = 0,
.pinsel_tx = 0,
.pinsel_msk_rx = BIT22,
.pinsel_msk_tx = BIT20,
},
{
.dev = UART3,
.irq_prio_rx = 6,
.pinsel_rx = 9,
.pinsel_tx = 9,
.pinsel_msk_rx = BIT26 | BIT27,
.pinsel_msk_tx = BIT24 | BIT25,
},
};
#define UART_NUMOF (1)
#define UART_NUMOF (4)
/** @} */
/**

View File

@ -100,7 +100,7 @@ static irq_fun_t _uart_isr[UART_NUMOF] = {
* bits 03: DIVADDVAL
* bits 47: MULVAL
*/
#define DIV_MUL(m, d) ((d << 4) | m)
#define DIV_MUL(d, m) ((m << 4) | d)
static const uint8_t div_table[] = {
DIV_MUL(0, 1), /* 1 */
DIV_MUL(0, 1), /* 1.03125 */