Skip to content

Conversation

@pdgendt
Copy link
Contributor

@pdgendt pdgendt commented Nov 27, 2024

Add wrapper DEVICE_API macro to all can_driver_api instances.

tejlmand
tejlmand previously approved these changes Nov 27, 2024
Add wrapper DEVICE_API macro to all can_driver_api instances.

Signed-off-by: Pieter De Gendt <[email protected]>
Update CAN shell commands to filter and verify the device's API type.

Signed-off-by: Pieter De Gendt <[email protected]>
static void can_shell_tx_msgq_triggered_work_handler(struct k_work *work);
static void can_shell_rx_msgq_triggered_work_handler(struct k_work *work);

static bool can_device_check(const struct device *dev)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe call this is_can_and_ready?

Copy link
Member

Choose a reason for hiding this comment

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

I think the existing name is fine as this function may be extended to do further checks in the future.

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

7 participants