Skip to content

Conversation

@pdgendt
Copy link
Contributor

@pdgendt pdgendt commented Nov 27, 2024

Add wrapper DEVICE_API macro to all can_transceiver_driver_api instances.

Add wrapper DEVICE_API macro to all can_transceiver_driver_api instances.

Signed-off-by: Pieter De Gendt <[email protected]>
@pdgendt
Copy link
Contributor Author

pdgendt commented Nov 29, 2024

Asserts should have been removed.

@henrikbrixandersen
Copy link
Member

Asserts should have been removed.

Please elaborate?

@pdgendt
Copy link
Contributor Author

pdgendt commented Nov 29, 2024

Please elaborate?

After a discord discussion the outcome was to not have asserts in the header files. This avoid breaking any downstream usages.

Next to that, we have already the I3C driver API which encapsulates an I2C driver API. The asserts would make it more complex, and we shouldn't enforce these in the headers.

@kartben kartben merged commit 19c9d08 into zephyrproject-rtos:main Dec 2, 2024
24 checks passed
@pdgendt pdgendt deleted the linker-api-can_transceiver branch December 2, 2024 13:26
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.

6 participants