diff options
Diffstat (limited to 'fw')
-rw-r--r-- | fw/fe310/eos/dev/egpio.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 |