Skip to content

Commit 9cdd798

Browse files
committed
linux driver release 2v1; python sources with zmq sources; zmq python logger/client
1 parent dfe7ad8 commit 9cdd798

32 files changed

Lines changed: 6647 additions & 2 deletions

Kbuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
EXTRA_CFLAGS := -I$(src)/aos_tmf8829_core_library/src
2+
EXTRA_CFLAGS += -I$(src)
3+
EXTRA_CFLAGS += -Wno-unused-function # -Wextra
4+
obj-$(CONFIG_SENSORS_TMF8829) += tmf8829.o
5+
tmf8829-y = tmf8829_driver.o ./aos_tmf8829_core_library/src/tmf8829.o ams_i2c.o tmf8829_shim.o tmf8829_hex_interpreter.o

Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config SENSORS_TMF8829
2+
tristate "ams-OSRAM TMF8829 TOF"
3+
depends on I2C
4+
default n
5+
help
6+
If you say yes here you get support for the tmf8829 sensor.
7+
8+
This driver can also be built as a module. If so, the module
9+
will be called tmf8829.ko.

LICENSES-GPL-2.0.TXT

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

LICENSES-MIT.TXT

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2025 AMS-OSRAM
2+
3+
The MIT License (MIT)
4+
Copyright © 2025 <copyright holders>
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7+
and associated documentation files (the “Software”), to deal in the Software without
8+
restriction, including without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
10+
Software is furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all copies or
13+
substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
16+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Enable these flags when compiling against a GCOV-enabled kernel
2+
# loadable objects are not compatible with different configured kernels (i.e. gcov)
3+
# GCOV_PROFILE := y
4+
# CFLAGS +=-ftest-coverage -fprofile-arcs
5+
# export CFLAGS
6+
7+
LINUX_SRC=/usr/src/linux
8+
9+
ifneq ($(KERNELRELEASE),)
10+
#kbuild part of Makefile
11+
include Kbuild
12+
else
13+
# Normal Makefile - The device overlay is compiled outside of the makefile -
14+
# Usually by a bash script running the makefile
15+
all:
16+
$(MAKE) -C $(LINUX_SRC) M=$$PWD modules
17+
dtc -@ -I dts -O dtb -o ./arch/arm/boot/dts/tmf8829-overlay-fpc.dtbo ./arch/arm/boot/dts/tmf8829-overlay-fpc.dts
18+
dtc -@ -I dts -O dtb -o ./arch/arm/boot/dts/tmf8829-overlay-fpc-polled.dtbo ./arch/arm/boot/dts/tmf8829-overlay-fpc-polled.dts
19+
dtc -@ -I dts -O dtb -o ./arch/arm/boot/dts/tmf8829-overlay-fpc-spi.dtbo ./arch/arm/boot/dts/tmf8829-overlay-fpc-spi.dts
20+
dtc -@ -I dts -O dtb -o ./arch/arm/boot/dts/tmf8829-overlay-fpc-spi-polled.dtbo ./arch/arm/boot/dts/tmf8829-overlay-fpc-spi-polled.dts
21+
22+
modules:
23+
$(MAKE) -C $(LINUX_SRC) M=$$PWD $@
24+
25+
clean:
26+
$(MAKE) -C $(LINUX_SRC) M=$$PWD clean
27+
$(RM) ./arch/arm/boot/dts/*.dtbo
28+
$(RM) .tmp*.gcno *.gcov *.gz coverage.info
29+
$(RM) -rf html sys
30+
endif

0 commit comments

Comments
 (0)