Skip to content

I2C Peripherial Implementation Improvements #30

@jmadden173

Description

@jmadden173

Couple things to look at for improving the I2C interface.

  • Check if we receive an NACK right after the address. Then pass the error upstream. Right now we pretty much assume successful transmission if the i2c peripheral is not blocked.
  • For write_read calls use an auto restart. Currently it is just a shortcut for calling write and read high level commands individually.
  • Clean up interrupts. enable enables all the required interrupts rather that selectively choosing the ones that are needed. Would make the code more fault tolerant with undefined behavior.
  • Disable peripheral after transaction for power savings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions