Open
Conversation
…or usec reduce instructions needed
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/*
*/
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