[RTEMS Project] #4591: BSP/Atsam: I2C driver doesn't return errors on NACK
RTEMS trac
trac at rtems.org
Fri Feb 11 07:38:48 UTC 2022
#4591: BSP/Atsam: I2C driver doesn't return errors on NACK
--------------------------------+---------------------------------
Reporter: Christian Mauderer | Owner: Christian Mauderer
Type: defect | Status: closed
Priority: normal | Milestone:
Component: bsps | Version: 5
Severity: normal | Resolution: fixed
Keywords: | Blocked By:
Blocking: |
--------------------------------+---------------------------------
Changes (by Christian Mauderer <christian.mauderer@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f7a204e3d7a501b629916a590571b163e85cf875/rtems"
f7a204e/rtems]:
{{{
#!CommitTicketReference repository="rtems"
revision="f7a204e3d7a501b629916a590571b163e85cf875"
bsp/atsam/i2c: Add error return and fix edge cases
The driver didn't return with an error on (for example) a NACK on the
bus. This adds the expected error return. Due to the new case that a
transfer can be interrupted on an error, there were some new edge cases.
This patch therefore also fixes these edge cases by removing the
transfer_state that more or less duplicated the interrupt states.
Fixes #4591
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4591#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list