Private
Public Access
2
0

uart: add init post hook

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-10-19 16:09:19 +01:00
parent 0f2329bd95
commit 071951e926
3 changed files with 18 additions and 9 deletions

View File

@@ -60,4 +60,6 @@ typedef struct {
mraa_result_t (*spi_init_pre) (int bus);
mraa_result_t (*spi_init_post) (mraa_spi_context spi);
mraa_result_t (*uart_init_post) (mraa_uart_context uart);
} mraa_adv_func_t;

View File

@@ -83,3 +83,12 @@ struct _aio {
int adc_in_fp; /**< File Pointer to raw sysfs */
int value_bit; /**< 10 bits by default. Can be increased if board */
};
/**
* A structure representing a UART device
*/
struct _uart {
/*@{*/
int index; /**< the uart index, as known to the os. */
/*@}*/
};