diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-09-12 22:27:19 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-09-12 22:27:19 +0200 |
commit | 708e618b312b8d5b09f0facdac66c20e7ef3c948 (patch) | |
tree | d24046fe6b4f4f84fd5cab17be7c249d49ea507c /fw/fe310/eos/dev | |
parent | 6f7cd6df1de1320dcd7a8b7f37661b4c9e961066 (diff) |
Diffstat (limited to 'fw/fe310/eos/dev')
-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 |