mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 19:01:21 +03:00
upm-c: remove uint8_t limit from pin/bus variables in structs
This removes unnecessary uint8 types from C driver structs that prevented some sensors from being initialized when connected to a MRAA subplatform. Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -42,9 +42,7 @@ ttp223_context ttp223_init(int pin) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dev->gpio_pin = pin;
|
||||
|
||||
dev->gpio = mraa_gpio_init(dev->gpio_pin);
|
||||
dev->gpio = mraa_gpio_init(pin);
|
||||
mraa_gpio_dir(dev->gpio, MRAA_GPIO_IN);
|
||||
dev->isr_installed = false;
|
||||
|
||||
|
@ -46,7 +46,6 @@
|
||||
*/
|
||||
typedef struct _ttp223_context {
|
||||
mraa_gpio_context gpio;
|
||||
uint8_t gpio_pin;
|
||||
bool isr_installed;
|
||||
} *ttp223_context;
|
||||
|
||||
|
Reference in New Issue
Block a user