Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Revol
firmware
Commits
ef45b851
Commit
ef45b851
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(bsec): More accurate statements about stack usage
parent
5ddc1877
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/main.c
+1
-1
1 addition, 1 deletion
epicardium/main.c
epicardium/modules/bsec.c
+2
-1
2 additions, 1 deletion
epicardium/modules/bsec.c
with
3 additions
and
2 deletions
epicardium/main.c
+
1
−
1
View file @
ef45b851
...
...
@@ -130,7 +130,7 @@ int main(void)
if
(
xTaskCreate
(
vBSECTask
,
(
const
char
*
)
"BSEC"
,
configMINIMAL_STACK_SIZE
*
3
,
/* 768 bytes. Mainly for state saving... */
configMINIMAL_STACK_SIZE
*
3
,
NULL
,
tskIDLE_PRIORITY
+
1
,
NULL
)
!=
pdPASS
)
{
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/bsec.c
+
2
−
1
View file @
ef45b851
...
...
@@ -203,6 +203,7 @@ void state_save(const uint8_t *state_buffer, uint32_t length)
goto
done
;
}
printf
(
"stack high: %lu
\n
"
,
uxTaskGetStackHighWaterMark
(
NULL
));
printf
(
"Success
\n
"
);
done:
epic_file_close
(
fd
);
...
...
@@ -311,7 +312,7 @@ int bsec_read_bme680(struct bme680_sensor_data *data)
* Checks config and activates the BSEC libary if requested.
*
* Initializes the BSEC library before starting the task to
* reduce the stack size needed for the task by at least
512
bytes
* reduce the stack size needed for the task by at least
250
bytes
*/
int
bsec_activate
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment