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
e63265d6
Commit
e63265d6
authored
5 years ago
by
Alexander Böhm
Browse files
Options
Downloads
Patches
Plain Diff
Add EPIC-API call disable_all_sensors to sys_bhi160 upy-module
parent
553a5038
Branches
Branches containing commit
No related tags found
1 merge request
!268
Add EPIC-API call disable_all_sensors to sys_bhi160 upy-module
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycardium/modules/bhi160-sys.c
+13
-0
13 additions, 0 deletions
pycardium/modules/bhi160-sys.c
with
13 additions
and
0 deletions
pycardium/modules/bhi160-sys.c
+
13
−
0
View file @
e63265d6
...
@@ -66,6 +66,17 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(
...
@@ -66,6 +66,17 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(
mp_bhi160_disable_sensor_obj
,
mp_bhi160_disable_sensor
mp_bhi160_disable_sensor_obj
,
mp_bhi160_disable_sensor
);
);
STATIC
mp_obj_t
mp_bhi160_disable_all_sensors
()
{
epic_bhi160_disable_all_sensors
();
return
mp_const_none
;
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_0
(
mp_bhi160_disable_all_sensors_obj
,
mp_bhi160_disable_all_sensors
);
STATIC
const
mp_rom_map_elem_t
bhi160_module_globals_table
[]
=
{
STATIC
const
mp_rom_map_elem_t
bhi160_module_globals_table
[]
=
{
{
MP_ROM_QSTR
(
MP_QSTR___name__
),
MP_ROM_QSTR
(
MP_QSTR_sys_bhi160
)
},
{
MP_ROM_QSTR
(
MP_QSTR___name__
),
MP_ROM_QSTR
(
MP_QSTR_sys_bhi160
)
},
{
MP_ROM_QSTR
(
MP_QSTR_enable_sensor
),
{
MP_ROM_QSTR
(
MP_QSTR_enable_sensor
),
...
@@ -74,6 +85,8 @@ STATIC const mp_rom_map_elem_t bhi160_module_globals_table[] = {
...
@@ -74,6 +85,8 @@ STATIC const mp_rom_map_elem_t bhi160_module_globals_table[] = {
MP_ROM_PTR
(
&
mp_bhi160_read_sensor_obj
)
},
MP_ROM_PTR
(
&
mp_bhi160_read_sensor_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_disable_sensor
),
{
MP_ROM_QSTR
(
MP_QSTR_disable_sensor
),
MP_ROM_PTR
(
&
mp_bhi160_disable_sensor_obj
)
},
MP_ROM_PTR
(
&
mp_bhi160_disable_sensor_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_disable_all_sensors
),
MP_ROM_PTR
(
&
mp_bhi160_disable_all_sensors_obj
)
},
};
};
STATIC
MP_DEFINE_CONST_DICT
(
bhi160_module_globals
,
bhi160_module_globals_table
);
STATIC
MP_DEFINE_CONST_DICT
(
bhi160_module_globals
,
bhi160_module_globals_table
);
...
...
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