• Maureen Helm's avatar
    zephyr/i2c: Add support for hardware i2c. · 2befcb8a
    Maureen Helm authored
    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.
    2befcb8a
mphalport.h 1009 Bytes