Private
Public Access
2
0

UART: Fixing UART issues on UP2

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2018-03-14 12:27:46 -07:00
parent acff725d93
commit cfda9c99d7
3 changed files with 48 additions and 5 deletions

View File

@@ -168,6 +168,16 @@ mraa_result_t mraa_atoi(char* intStr, int* value);
*/
int mraa_find_i2c_bus_pci(const char* pci_device, const char *pci_id, const char* adapter_name);
/**
* helper function to find the uart device based on pci data
*
* @param pci_dev_path points to the location of tty device which corresponds
* to the uart device available on the platform
* @param dev_name as retrieved from pci_dev_path
* @return Result of the operation
*/
mraa_result_t mraa_find_uart_bus_pci(const char* pci_dev_path, char** dev_name);
#if defined(IMRAA)
/**
* read Imraa subplatform lock file, caller is responsible to free return