Skip to content

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

peterharperuk
Copy link
Contributor

No description provided.

@peterharperuk peterharperuk added this to the 2.1.2 milestone May 30, 2025
@peterharperuk peterharperuk requested a review from kilograham May 30, 2025 12:10
@peterharperuk
Copy link
Contributor Author

Depends on raspberrypi/pico-sdk#2436

Copy link
Contributor

@kilograham kilograham left a comment

Choose a reason for hiding this comment

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

^

Copy link
Contributor

@kilograham kilograham left a comment

Choose a reason for hiding this comment

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

^

@peterharperuk peterharperuk force-pushed the freertos-static-task branch from 213f979 to 1eb7e37 Compare July 21, 2025 12:35
@peterharperuk peterharperuk force-pushed the freertos-static-task branch from 1eb7e37 to 6207c40 Compare July 21, 2025 12:39
@@ -1,3 +1,4 @@
# Example running FreeRTOS on 1 core
Copy link
Contributor

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

  1. get rid of the ${TARGET_NAME} stuff and just inline the value
  2. move all the PICO_CYW43_SUPPORTED to a single IF at the bottom

Copy link
Contributor

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

Copy link
Contributor

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;
Copy link
Contributor

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

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

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy