2befcb8a9d
Adds support for hardware i2c to the zephyr port. Similar to other ports such as stm32 and nrf, we only implement the i2c protocol functions (readfrom and writeto) and defer memory operations (readfrom_mem, readfrom_mem_into, and writeto_mem) to the software i2c implementation. This may need to change in the future because zephyr is considering deprecating its i2c_transfer function in favor of i2c_write_read; in this case we would probably want to implement the memory operations directly using i2c_write_read. Tested with the accelerometer on frdm_k64f and bbc_microbit boards.
5 lines
88 B
Plaintext
5 lines
88 B
Plaintext
# Sensor drivers
|
|
CONFIG_FXOS8700=y
|
|
CONFIG_FXOS8700_MODE_HYBRID=y
|
|
CONFIG_FXOS8700_TEMP=y
|