upm: fix pin and bus types to allow subplatform usage in C libs

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2018-01-08 13:25:55 -08:00
parent a5680d9b9a
commit b367a63010
18 changed files with 32 additions and 32 deletions

View File

@ -36,9 +36,9 @@
#define URM37_WAIT_TIMEOUT 1000
#define URM37_MAX_RETRIES 10
urm37_context urm37_init(uint8_t a_pin, uint8_t reset_pin,
uint8_t trigger_pin, float a_ref,
uint8_t uart_bus, bool analog_mode)
urm37_context urm37_init(int a_pin, int reset_pin,
int trigger_pin, float a_ref,
int uart_bus, bool analog_mode)
{
// make sure MRAA is initialized
int mraa_rv;

View File

@ -76,9 +76,9 @@ typedef struct _urm37_context {
* @param uart Default UART to use (0 or 1). Ignored in analog mode.
* @param mode true for analog mode, false otherwise.
*/
urm37_context urm37_init(uint8_t a_pin, uint8_t reset_pin,
uint8_t trigger_pin, float a_ref,
uint8_t uart, bool analog_mode);
urm37_context urm37_init(int a_pin, int reset_pin,
int trigger_pin, float a_ref,
int uart, bool analog_mode);
/**
* URM37 sensor close function