Skip to content

Nrf52 i2c byte rw fix #11739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 28, 2019
Merged

Conversation

maciejbocianski
Copy link
Contributor

Description

Fix NRF52 i2c read/write single byte implementation

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@jamesbeyond

Release Notes

add tick to us conversion
@ciarmcom ciarmcom requested review from jamesbeyond and a team October 23, 2019 15:00
@ciarmcom
Copy link
Member

@maciejbocianski, thank you for your changes.
@jamesbeyond @ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2019

@maciejbocianski Can you add details to 627e6de - amend the commit message. There are new private functions added, how they are fixing the problem ,etc.

@maciejbocianski maciejbocianski force-pushed the nrf52_i2c_byte_rw_fix branch 4 times, most recently from bd40d7c to b1d0c6e Compare October 25, 2019 11:02
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2019

@maciejbocianski Can you add details to 627e6de - amend the commit message. There are new private functions added, how they are fixing the problem ,etc.

Any update for this one?

@0Grit
Copy link

0Grit commented Oct 25, 2019

@ARMmbed/team-embeddedplanet

i2c_byte_write implementation was broken.
Data sending was inside addressing block

Changed from:
i2c_byte_write
{
   if (start) {
      if (read_address)
         start read;
      esle
         start write;
      write byte;
   }
}

to:
i2c_byte_write
{
   if (start) {
      // if first call after start
      // address for reading or writing
      if (read_address)
         start read;
      esle
         start write;
      } else {
         // send data byte
         write byte;
   }
}
@maciejbocianski
Copy link
Contributor Author

@maciejbocianski Can you add details to 627e6de - amend the commit message. There are new private functions added, how they are fixing the problem ,etc.

Any update for this one?

Updated

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 28, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Oct 28, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants