Skip to content

Optimize stuff edvard 26 03#2

Open
edvardxyz wants to merge 4 commits intomasterfrom
optimize_stuff_edvard_26-03
Open

Optimize stuff edvard 26 03#2
edvardxyz wants to merge 4 commits intomasterfrom
optimize_stuff_edvard_26-03

Conversation

@edvardxyz
Copy link
Copy Markdown
Contributor

@edvardxyz edvardxyz commented Apr 7, 2026

Separate freertos hooks into each platform, as idle stack size and sleep mode was based on e70.
Moved assert into each hooks file.
reduced c21 idle stack size to 64*4

Removed vTaskDelete included in c21 to reduce idle stack size

/*

  • Used only by the idle task. This checks to see if anything has been placed
  • in the list of tasks waiting to be deleted. If so the task is cleaned up
  • and its TCB deleted.
    */
    static void prvCheckTasksWaitingTermination( void ) PRIVILEGED_FUNCTION;

Stack Worst-Case Scenarios

Stack Code Name

∑ = 24 ∑= 36
1 24 8 36 24 [sleep]
2 16 8 12 [vApplicationIdleHook]

This PR also changes freertos usage statistics to use usec libc21 function instead of nsec

…ach arch, moved atomics to libc21.

Freertos hooks seperated as e70 config was applied to c21. Idle task
size of 256*4 bytes and sleep with mode 0 is for e70. This also mitigates future
issues like this from happening again.
we have to do this manually as atmel start does not call _go_to_sleep() if mode is 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant