mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
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:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user