From 708e618b312b8d5b09f0facdac66c20e7ef3c948 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 12 Sep 2024 22:27:19 +0200 Subject: fixed egpio --- fw/fe310/eos/dev/egpio.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fw/fe310/eos/dev') diff --git a/fw/fe310/eos/dev/egpio.c b/fw/fe310/eos/dev/egpio.c index e5a39bf..c17fe81 100644 --- a/fw/fe310/eos/dev/egpio.c +++ b/fw/fe310/eos/dev/egpio.c @@ -9,13 +9,22 @@ int eos_egpio_pin_get(uint8_t reg, uint8_t pin, uint8_t *val) { uint8_t chip_id; + int rv; chip_id = (pin & EGPIO_PIN_MASK_CHIP_ID) >> 4; pin &= EGPIO_PIN_MASK; + + rv = eos_fxl6408_pin_get(chip_id, reg, pin, val); + return rv; } + int eos_egpio_pin_set(uint8_t reg, uint8_t pin, uint8_t val) { uint8_t chip_id; + int rv; chip_id = (pin & EGPIO_PIN_MASK_CHIP_ID) >> 4; pin &= EGPIO_PIN_MASK; + + rv = eos_fxl6408_pin_set(chip_id, reg, pin, val); + return rv; } \ No newline at end of file -- cgit v1.2.3