uart tx running
This commit is contained in:
@@ -41,7 +41,7 @@ int drv_open(const struct driver *driver)
|
||||
ret = spi_open((const struct spi *)(driver->device_driver));
|
||||
break;
|
||||
case DRIVER_TYPE_UART:
|
||||
// ret = uart_open((const struct uart *)(driver->device_driver));
|
||||
ret = uart_open((const struct uart *)(driver->device_driver));
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
@@ -136,7 +136,7 @@ int drv_write(const struct driver *driver, const char *buffer, int len)
|
||||
case DRIVER_TYPE_SPI:
|
||||
break;
|
||||
case DRIVER_TYPE_UART:
|
||||
// ret = uart_write((const struct uart *)(driver->device_driver), buffer, len);
|
||||
ret = uart_write((const struct uart *)(driver->device_driver), buffer, len);
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user