[update][bsp_common][examples] sync demo and bsp common with hal driver"

This commit is contained in:
jzlv 2022-01-13 16:34:24 +08:00
parent b6c09e3e2b
commit 1f4fd9061d
27 changed files with 386 additions and 2288 deletions

View file

@ -28,8 +28,10 @@ void shell_irq_callback(struct device *dev, void *args, uint32_t size, uint32_t
{
uint8_t data;
if (state == UART_EVENT_RX_FIFO) {
data = *(uint8_t *)args;
shell_handler(data);
for (size_t i = 0; i < size; i++) {
data = *(uint8_t *)(args + i);
shell_handler(data);
}
}
}