-
Notifications
You must be signed in to change notification settings - Fork 123
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
FreeRTOS pdPASS constant not available #130
Comments
This is because of the way those macros are defined. We're using bindgen to generate the esp-idf bindings and it doesn't support generating constants for macros with casts and generally for function-like macros (see rust-lang/rust-bindgen#316). We need to either define them ourselves or add special logic using |
Closing, because for now the philosophy if the project is to just generate raw bindings to whatever is available in the ESP IDF C headers, with very few - if any - customizations. In fact, the one and only exception is the |
ESP-IDF documentation tells that the FreeRTOS function
xTaskCreatePinnedToCore
returnspdPASS
if it succeeds.The
pdPASS
constant is defined here in ESP-IDF headers.However I can't access this constant from Rust through esp-idf-sys. It is not listed in the docs. Some other constants from the same header file can be found in esp-idf-sys, such as
pdFREERTOS_ERRNO_ENOENT
.This is especially important because the value of
pdPASS
seems to be 1. The C wisdom of "0 means success" doesn't hold here.The text was updated successfully, but these errors were encountered: