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
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Commits
eb1606c6
Commit
eb1606c6
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
change(bme680): Keep BME680 always initialized
parent
452deca2
Branches
Branches containing commit
No related tags found
1 merge request
!428
Environmental Sensing Service
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/modules/bme680.c
+8
-0
8 additions, 0 deletions
epicardium/modules/bme680.c
epicardium/modules/hardware.c
+5
-5
5 additions, 5 deletions
epicardium/modules/hardware.c
with
13 additions
and
5 deletions
epicardium/modules/bme680.c
+
8
−
0
View file @
eb1606c6
...
...
@@ -127,6 +127,13 @@ int epic_bme680_init()
int
epic_bme680_deinit
()
{
/* This is an intentional NO OP to keep the BME680 always initialized.
*
* If it configured to foreced mode, there is no energy consumption
* penalty.
*/
#if 0
if (!initialized) {
return 0;
}
...
...
@@ -137,6 +144,7 @@ int epic_bme680_deinit()
}
initialized = false;
#endif
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/hardware.c
+
5
−
5
View file @
eb1606c6
...
...
@@ -194,6 +194,11 @@ int hardware_early_init(void)
max86150_shut_down
();
/*
* BME680 Sensor
*/
epic_bme680_init
();
/* Allow user space to trigger interrupts.
* Used for BLE, not sure if needed. */
SCB
->
CCR
|=
SCB_CCR_USERSETMPEND_Msk
;
...
...
@@ -276,11 +281,6 @@ int hardware_reset(void)
*/
epic_bhi160_disable_all_sensors
();
/*
* BME680 Sensor
*/
epic_bme680_deinit
();
epic_max30001_disable_sensor
();
epic_max86150_disable_sensor
();
...
...
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