Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Commits
7fae56dd
Unverified
Commit
7fae56dd
authored
3 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for BME680 BSEC support
parent
9318c681
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+6
-0
6 additions, 0 deletions
Makefile
src/arch/posix/Makefile.inc
+4
-1
4 additions, 1 deletion
src/arch/posix/Makefile.inc
src/driver/Kconfig
+10
-0
10 additions, 0 deletions
src/driver/Kconfig
with
21 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
7fae56dd
...
...
@@ -18,3 +18,4 @@
/src/app/prototest/prototest_local.cc.inc
src/driver/dummy.cc
include/driver/dummy.h
include/arch/*/driver/bme680-*/*
This diff is collapsed.
Click to expand it.
Makefile
+
6
−
0
View file @
7fae56dd
...
...
@@ -17,6 +17,7 @@ endif
quote
=
"
app_dir
=
$(
subst
${
quote
}
,,
${
CONFIG_app
})
arch_dir
=
$(
subst
${
quote
}
,,
${
CONFIG_arch
})
bsec_dir
=
$(
subst
${
quote
}
,,
${
CONFIG_driver_bme680_bsec_path
})
INCLUDES
=
-Iinclude -Iinclude/arch/
${
arch_dir
}
CFLAGS
=
-std=c99
...
...
@@ -27,6 +28,7 @@ QUIET = @
ASM_TARGETS
=
C_TARGETS
=
CXX_TARGETS
=
src/app/
${
app_dir
}
/main.cc src/object/cpp_helpers.cc src/object/outputstream.cc
SO_TARGETS
=
ifdef
verbose
QUIET
=
...
...
@@ -64,6 +66,10 @@ ifdef CONFIG_driver_bme680
CXX_TARGETS
+=
src/driver/bme680.cc src/driver/bme680_util.cc
endif
ifdef
CONFIG_driver_bme680_bsec
SO_TARGETS
+=
include/arch/
${
arch_dir
}
/driver/
${
bsec_dir
}
/libalgobsec.a
endif
ifdef
CONFIG_driver_ccs811
CXX_TARGETS
+=
src/driver/ccs811.cc
endif
...
...
This diff is collapsed.
Click to expand it.
src/arch/posix/Makefile.inc
+
4
−
1
View file @
7fae56dd
...
...
@@ -41,7 +41,7 @@ ifdef CONFIG_arch_posix_driver_uptime
CXX_TARGETS
+=
src/arch/posix/driver/uptime.cc
endif
OBJECTS
=
${
CXX_TARGETS:.cc
=
.o
}
${
C_TARGETS:.c
=
.o
}
OBJECTS
=
${
SO_TARGETS:.a
=
.so
}
${
CXX_TARGETS:.cc
=
.o
}
${
C_TARGETS:.c
=
.o
}
ifneq
(${gpio_trace}, )
COMMON_FLAGS
+=
-DGPIO_TRACE
...
...
@@ -56,6 +56,9 @@ endif
%.o
:
%.c | include/config.h
${
QUIET
}${
CC
}
${
INCLUDES
}
${
COMMON_FLAGS
}
${
CFLAGS
}
-c
-o
$@
${
@:.o
=
.c
}
%.so
:
%.a | include/config.h
${
QUIET
}${
CC
}
-shared
-o
$@
-Wl
,--whole-archive
${
@:.so
=
.a
}
-Wl
,--no-whole-archive
build/system.elf
:
${OBJECTS}
${
QUIET
}
mkdir
-p
build
${
QUIET
}${
CXX
}
${
INCLUDES
}
${
COMMON_FLAGS
}
${
CXXFLAGS
}
\
...
...
This diff is collapsed.
Click to expand it.
src/driver/Kconfig
+
10
−
0
View file @
7fae56dd
...
...
@@ -35,6 +35,16 @@ config driver_bme680
bool "BME680 TPH+IAQ Sensor"
depends on meta_driver_i2c && !driver_bme280
config driver_bme680_bsec
bool "with BSEC (proprietary library for IAQ calculation)"
depends on driver_bme680
config driver_bme680_bsec_path
string "BSEC library path"
default "bme680-bsec" if arch_msp430fr5994lp
default "bme680-bsec-armv6" if arch_posix
depends on driver_bme680_bsec && (arch_msp430fr5994lp || arch_posix)
config driver_ccs811
bool "CCS811 VOC Sensor"
depends on meta_driver_i2c
...
...
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