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
6cc3dba4
Commit
6cc3dba4
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(bsec): add task handle for debugging in gdb
parent
487ac25e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/modules/bsec.c
+5
-1
5 additions, 1 deletion
epicardium/modules/bsec.c
with
5 additions
and
1 deletion
epicardium/modules/bsec.c
+
5
−
1
View file @
6cc3dba4
...
...
@@ -16,6 +16,8 @@
#include
<string.h>
#include
<stdio.h>
TaskHandle_t
bsec_task_id
;
// From generic_18v_3s_4d/bsec_serialized_configurations_iaq.c
static
const
uint8_t
bsec_config_generic_18v_3s_4d
[
454
]
=
{
4
,
7
,
4
,
1
,
61
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
174
,
1
,
0
,
0
,
48
,
0
,
1
,
0
,
0
,
192
,
168
,
71
,
64
,
49
,
119
,
76
,
0
,
0
,
225
,
68
,
137
,
65
,
0
,
63
,
205
,
204
,
204
,
62
,
0
,
0
,
64
,
63
,
205
,
204
,
204
,
62
,
0
,
0
,
0
,
0
,
216
,
85
,
0
,
100
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
28
,
0
,
2
,
0
,
0
,
244
,
1
,
225
,
0
,
25
,
0
,
0
,
128
,
64
,
0
,
0
,
32
,
65
,
144
,
1
,
0
,
0
,
112
,
65
,
0
,
0
,
0
,
63
,
16
,
0
,
3
,
0
,
10
,
215
,
163
,
60
,
10
,
215
,
35
,
59
,
10
,
215
,
35
,
59
,
9
,
0
,
5
,
0
,
0
,
0
,
0
,
0
,
1
,
88
,
0
,
9
,
0
,
7
,
240
,
150
,
61
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
28
,
124
,
225
,
61
,
52
,
128
,
215
,
63
,
0
,
0
,
160
,
64
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
205
,
204
,
12
,
62
,
103
,
213
,
39
,
62
,
230
,
63
,
76
,
192
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
145
,
237
,
60
,
191
,
251
,
58
,
64
,
63
,
177
,
80
,
131
,
64
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
93
,
254
,
227
,
62
,
54
,
60
,
133
,
191
,
0
,
0
,
64
,
64
,
12
,
0
,
10
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
229
,
0
,
254
,
0
,
2
,
1
,
5
,
48
,
117
,
100
,
0
,
44
,
1
,
112
,
23
,
151
,
7
,
132
,
3
,
197
,
0
,
92
,
4
,
144
,
1
,
64
,
1
,
64
,
1
,
144
,
1
,
48
,
117
,
48
,
117
,
48
,
117
,
48
,
117
,
100
,
0
,
100
,
0
,
100
,
0
,
48
,
117
,
48
,
117
,
48
,
117
,
100
,
0
,
100
,
0
,
48
,
117
,
48
,
117
,
100
,
0
,
100
,
0
,
100
,
0
,
100
,
0
,
48
,
117
,
48
,
117
,
48
,
117
,
100
,
0
,
100
,
0
,
100
,
0
,
48
,
117
,
48
,
117
,
100
,
0
,
100
,
0
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
44
,
1
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
8
,
7
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
112
,
23
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
220
,
5
,
220
,
5
,
220
,
5
,
255
,
255
,
255
,
255
,
255
,
255
,
220
,
5
,
220
,
5
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
255
,
44
,
1
,
0
,
0
,
0
,
0
,
52
,
233
,
0
,
0
};
...
...
@@ -263,6 +265,8 @@ static void delay(uint32_t msec)
void
vBSECTask
(
void
*
pvParameters
)
{
return_values_init
ret
;
bsec_task_id
=
xTaskGetCurrentTaskHandle
();
/* Call to the function which initializes the BSEC library */
#if 0
/* Switch on ultra_low-power mode and provide no temperature offset */
...
...
@@ -297,7 +301,7 @@ void vBSECTask(void *pvParameters)
/* State is saved every 10.000 samples, which means every 10.000 * 3 secs = 500 minutes */
//bsec_iot_loop(card10_bosch_delay, get_timestamp_us, output_ready, state_save, 10000);
/* State is saved every 100 samples, which means every 1200 * 3 secs = 60 minutes */
/* State is saved every 1
2
00 samples, which means every 1200 * 3 secs = 60 minutes */
bsec_iot_loop
(
delay
,
get_timestamp_us
,
...
...
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