Skip to content

[hal] Support 16bit transfers for I2c - #741

Closed
TomSaw wants to merge 1 commit into
modm-io:developfrom
TomSaw:i2c-16bit-transfer
Closed

[hal] Support 16bit transfers for I2c#741
TomSaw wants to merge 1 commit into
modm-io:developfrom
TomSaw:i2c-16bit-transfer

Conversation

@TomSaw

@TomSaw TomSaw commented Sep 29, 2021

Copy link
Copy Markdown
Contributor

I like the idea of moving 16bit treatment from drivers to Hal. Dozens of I2c-drivers contain endian sanities (more or less any call of 'modm::BigEndian()' in src/modm/driver/** ) before or after talking to I2c.

point_right In addition to cleaner code we gain slightly shrinked compilate and slightly improved performance because data >> 8 in Hal is cheaper than modm::fromBigendian(data) in Drivers.

Same currently happens with Spi #690
I2c is a little more tricky so i postpone this and concentrate on merging #665 first.

@TomSaw TomSaw changed the title [hal] support 16bit transfer for I2c [hal] Support 16bit transfers for I2c Sep 29, 2021
@TomSaw
TomSaw force-pushed the i2c-16bit-transfer branch from 9601478 to 33dab26 Compare October 4, 2021 10:22
@TomSaw
TomSaw force-pushed the i2c-16bit-transfer branch from 33dab26 to 549f577 Compare November 14, 2021 09:58
@TomSaw
TomSaw force-pushed the i2c-16bit-transfer branch from 549f577 to 115a896 Compare November 23, 2021 07:57
@TomSaw TomSaw closed this Jan 12, 2022
@TomSaw
TomSaw deleted the i2c-16bit-transfer branch January 12, 2022 16:50
@TomSaw

TomSaw commented Jan 12, 2022

Copy link
Copy Markdown
Contributor Author

Renamed branch to feature/i2c-16bit-transfer and created new PR: #812
because it's not too late for this youngster PR to get a better branch-name.

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

Development

Successfully merging this pull request may close these issues.

2 participants