-
Notifications
You must be signed in to change notification settings - Fork 932
Support static allocation in Freertos example #651
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
base: develop
Are you sure you want to change the base?
Support static allocation in Freertos example #651
Conversation
Depends on raspberrypi/pico-sdk#2436 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
213f979
to
1eb7e37
Compare
1eb7e37
to
6207c40
Compare
@@ -1,3 +1,4 @@ | |||
# Example running FreeRTOS on 1 core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This CMakeLists.txt is a bit inimidating; could we maybe
- get rid of the ${TARGET_NAME} stuff and just inline the value
- move all the PICO_CYW43_SUPPORTED to a single IF at the bottom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also pre-existing but can we call this hello_freertos_one_core
/ hello_freertos_two_cores
, or hello_freertos
/hello_freertos_smp
Note also, worth checking if we usually list multiple targets in the top level README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finally, it feels a bit like example overload to have async_context stuff in here, but i guess it can stay for now
#if configSUPPORT_STATIC_ALLOCATION | ||
static StackType_t async_context_freertos_task_stack[WORKER_TASK_STACK_SIZE]; | ||
config.task_stack = async_context_freertos_task_stack; | ||
#endif | ||
if (!async_context_freertos_init(&async_context_instance, &config)) | ||
return NULL; | ||
return &async_context_instance.core; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is pre-existing, but it is confusing to have pico_
prefixes here and on pico_init_led
No description provided.