mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +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 "a110x.h"
|
||||
|
||||
a110x_context a110x_init(uint8_t pin) {
|
||||
a110x_context a110x_init(int pin) {
|
||||
// make sure MRAA is initialized
|
||||
int mraa_rv;
|
||||
if ((mraa_rv = mraa_init()) != MRAA_SUCCESS)
|
||||
|
@ -45,7 +45,7 @@
|
||||
*/
|
||||
typedef struct _a110x_context {
|
||||
mraa_gpio_context gpio;
|
||||
uint8_t gpio_pin;
|
||||
int gpio_pin;
|
||||
bool isr_installed;
|
||||
} *a110x_context;
|
||||
|
||||
@ -55,7 +55,7 @@ typedef struct _a110x_context {
|
||||
* @param pin GPIO pin to use
|
||||
* @return device context pointer
|
||||
*/
|
||||
a110x_context a110x_init(uint8_t pin);
|
||||
a110x_context a110x_init(int pin);
|
||||
|
||||
/**
|
||||
* A110X Initialization function
|
||||
|
Reference in New Issue
Block a user