Skip to content
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

Align ARM i2c_readReg with AVR #6314

Merged
merged 2 commits into from
Jul 16, 2019
Merged

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Jul 12, 2019

Description

When compiling some generic I2C code, I was getting some compile issues on ARM due to the differences in API. i2c_readReg is fine to take a non pointer regaddr, as its only ever going to be an [in] as its the address to read. This change also matches what the docs describe the API as.

I have checked all instances of i2c_readReg and none should cause an issue.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@zvecr
Copy link
Member Author

zvecr commented Jul 12, 2019

@awkannan I had to modify the satisfaction75 copy of i2c_master due to the API alignment. Now #5671 has dropped, it should be possible to use the default copy of i2c_master and specify the overrides to configure it for the f072.

Copy link
Member

@drashna drashna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@skullydazed skullydazed merged commit 5fa0a27 into qmk:master Jul 16, 2019
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request Jul 16, 2019
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
fdidron pushed a commit to zsa/qmk_firmware that referenced this pull request Jul 19, 2019
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
doughsay pushed a commit to doughsay/qmk_firmware that referenced this pull request Aug 31, 2019
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
swanmatch pushed a commit to swanmatch/qmk_firmware that referenced this pull request Sep 3, 2019
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
ripxorip pushed a commit to ripxorip/qmk_firmware that referenced this pull request Dec 3, 2019
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
ridingqwerty pushed a commit to ridingqwerty/qmk_firmware that referenced this pull request Jan 10, 2020
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
swamp09 pushed a commit to swamp09/qmk_firmware that referenced this pull request Mar 11, 2020
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
@zvecr zvecr deleted the feature/arm_i2c_align branch April 28, 2020 00:37
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Align arm i2c_readReg with avr

* Align arm i2c_readReg with avr - fix cannonkeys
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.

4 participants