blob: e5a39bf7a8fd7ea1cfb034a4f3b800c0d6715ed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdlib.h>
#include <stdint.h>
#include "eos.h"
#include "soc/i2c.h"
#include "fxl6408.h"
#include "egpio.h"
int eos_egpio_pin_get(uint8_t reg, uint8_t pin, uint8_t *val) {
uint8_t chip_id;
chip_id = (pin & EGPIO_PIN_MASK_CHIP_ID) >> 4;
pin &= EGPIO_PIN_MASK;
}
int eos_egpio_pin_set(uint8_t reg, uint8_t pin, uint8_t val) {
uint8_t chip_id;
chip_id = (pin & EGPIO_PIN_MASK_CHIP_ID) >> 4;
pin &= EGPIO_PIN_MASK;
}
|