mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 21:29:17 +00:00
[refactor] delete unused flag noun in device_register
This commit is contained in:
parent
66635f84f7
commit
50d130075c
74 changed files with 201 additions and 11419 deletions
|
@ -61,7 +61,7 @@ void uart_irq_callback(struct device *dev, void *args, uint32_t size, uint32_t s
|
|||
}
|
||||
void uart1_init(void)
|
||||
{
|
||||
uart_register(UART1_INDEX, "uart1", DEVICE_OFLAG_RDWR);
|
||||
uart_register(UART1_INDEX, "uart1");
|
||||
uart1 = device_find("uart1");
|
||||
|
||||
if (uart1) {
|
||||
|
@ -71,7 +71,7 @@ void uart1_init(void)
|
|||
device_control(uart1, DEVICE_CTRL_SET_INT, (void *)(UART_RX_FIFO_IT | UART_RTO_IT));
|
||||
}
|
||||
|
||||
dma_register(DMA0_CH2_INDEX, "ch2", DEVICE_OFLAG_RDWR);
|
||||
dma_register(DMA0_CH2_INDEX, "ch2");
|
||||
dma_ch2 = device_find("ch2");
|
||||
|
||||
if (dma_ch2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue