mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-07 13:28:48 +00:00
[style] format code
This commit is contained in:
parent
d30a09dc49
commit
844809bca8
1 changed files with 6 additions and 8 deletions
|
@ -24,8 +24,7 @@ void uart_isr(int irq, void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (intstatus & UART_INTSTS_TX_FIFO) {
|
if (intstatus & UART_INTSTS_TX_FIFO) {
|
||||||
for (uint8_t i = 0; i < 27; i++)
|
for (uint8_t i = 0; i < 27; i++) {
|
||||||
{
|
|
||||||
bflb_uart_putchar(uartx, uart_txbuf[i]);
|
bflb_uart_putchar(uartx, uart_txbuf[i]);
|
||||||
}
|
}
|
||||||
bflb_uart_txint_mask(uartx, true);
|
bflb_uart_txint_mask(uartx, true);
|
||||||
|
@ -38,10 +37,9 @@ int main(void)
|
||||||
board_init();
|
board_init();
|
||||||
board_uartx_gpio_init();
|
board_uartx_gpio_init();
|
||||||
|
|
||||||
uartx = bflb_device_get_by_name("uart3");
|
uartx = bflb_device_get_by_name(DEFAULT_TEST_UART);
|
||||||
|
|
||||||
for(uint8_t i=0; i < 128; i++)
|
for (uint8_t i = 0; i < 128; i++) {
|
||||||
{
|
|
||||||
uart_txbuf[i] = i;
|
uart_txbuf[i] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +52,7 @@ int main(void)
|
||||||
cfg.flow_ctrl = 0;
|
cfg.flow_ctrl = 0;
|
||||||
cfg.tx_fifo_threshold = 7;
|
cfg.tx_fifo_threshold = 7;
|
||||||
cfg.rx_fifo_threshold = 7;
|
cfg.rx_fifo_threshold = 7;
|
||||||
//bflb_uart_init(uartx, &cfg);
|
bflb_uart_init(uartx, &cfg);
|
||||||
|
|
||||||
bflb_uart_txint_mask(uartx, false);
|
bflb_uart_txint_mask(uartx, false);
|
||||||
bflb_uart_rxint_mask(uartx, false);
|
bflb_uart_rxint_mask(uartx, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue