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

Unable to disable vAssertCalled #62

Closed
pileghoff opened this issue Aug 13, 2023 · 3 comments
Closed

Unable to disable vAssertCalled #62

pileghoff opened this issue Aug 13, 2023 · 3 comments

Comments

@pileghoff
Copy link

I already have an implementation of vAssertCalled in C, and because would like to disable the implementation in this create, but have not found a way.

I tried removing the hooks feature, but it turns out that vAssertCalled is defined anyway. Is this intentional?

@niondir
Copy link
Member

niondir commented Aug 19, 2023

https://github.com/lobaro/FreeRTOS-rust/blob/master/freertos-rust-examples/examples/nrf9160/FreeRTOSConfig.h

configASSERT ist part of the freertos config and defines the assert method. You can just use another method name and rename your implementation with your freertos config.

Does this helps you?

@pileghoff
Copy link
Author

Yeah, that works, but I still find it strange that the library provides an assert hook using the "default" name, instead of leaving it up to the application.

@niondir
Copy link
Member

niondir commented Sep 1, 2023

We could rename the default implementation provided here and change the define in the examples.

I would be fine with that.

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

No branches or pull requests

2 participants