Private
Public Access
2
0

mraa.c: add a by-name lookup function also for UARTs

Signed-off-by: Tapani Utriainen <tapani@technexion.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Tapani Utriainen
2017-05-16 20:14:04 +08:00
committed by Brendan Le Foll
parent 9479843cde
commit 5ef3f3ea29
3 changed files with 50 additions and 0 deletions

View File

@@ -265,6 +265,14 @@ int mraa_spi_lookup(const char* spi_name);
*/
int mraa_pwm_lookup(const char* pwm_name);
/**
* Get UART index by name, board must be initialised.
*
* @param uart_name: Name of UART. Eg:UART1
* @return int of MRAA index for UART, or -1 if not found.
*/
int mraa_uart_lookup(const char* uart_name);
/**
* Get default i2c bus, board must be initialised.
*