mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 19:31:15 +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:
@ -24,7 +24,7 @@
|
||||
*/
|
||||
#include "gp2y0a.h"
|
||||
|
||||
gp2y0a_context gp2y0a_init(uint8_t pin, float a_ref){
|
||||
gp2y0a_context gp2y0a_init(int pin, float a_ref){
|
||||
// make sure MRAA is initialized
|
||||
int mraa_rv;
|
||||
if ((mraa_rv = mraa_init()) != MRAA_SUCCESS)
|
||||
|
@ -47,7 +47,7 @@
|
||||
*/
|
||||
typedef struct _gp2y0a_context {
|
||||
mraa_aio_context aio;
|
||||
uint8_t pin;
|
||||
int pin;
|
||||
int a_res;
|
||||
} *gp2y0a_context;
|
||||
|
||||
@ -57,7 +57,7 @@ typedef struct _gp2y0a_context {
|
||||
* @param pin Analog pin to use
|
||||
* @param a_ref reference voltage
|
||||
*/
|
||||
gp2y0a_context gp2y0a_init(uint8_t pin, float a_ref);
|
||||
gp2y0a_context gp2y0a_init(int pin, float a_ref);
|
||||
|
||||
/**
|
||||
* GP2Y0A close function
|
||||
|
Reference in New Issue
Block a user