uart tx running

This commit is contained in:
tkl
2016-08-17 10:06:18 +02:00
parent a8a4cb263d
commit 4a9da1a9fd
14 changed files with 324 additions and 168 deletions

View File

@@ -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;