修改:
1.函数命名add_to_xxx修改为add,不再指明具体添加到的目标。
This commit is contained in:
@@ -388,7 +388,7 @@ mr_err_t mr_hw_uart_init(void)
|
||||
|
||||
while (count --)
|
||||
{
|
||||
ret = mr_hw_serial_add_to_container(&hw_serial[count], ch32_uart[count].name, &ops, &ch32_uart[count]);
|
||||
ret = mr_hw_serial_add(&hw_serial[count], ch32_uart[count].name, &ops, &ch32_uart[count]);
|
||||
MR_ASSERT(ret == MR_ERR_OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user