uart: add fd (file descriptor) to uart context
Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Thomas Ingleby
parent
38acfe6d30
commit
bdadbb8b01
@@ -83,6 +83,7 @@ mraa_uart_init(int index)
|
||||
memset(dev, 0, sizeof(struct _uart));
|
||||
|
||||
dev->index = index;
|
||||
dev->fd = -1;
|
||||
dev->path = (char*) plat->uart_dev[index].device_path;
|
||||
if (advance_func->uart_init_post != NULL) {
|
||||
mraa_result_t ret = advance_func->uart_init_post(dev);
|
||||
|
||||
Reference in New Issue
Block a user