This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
12e8de71b1
zephyr
/
drivers
/
sensor
/
nxp_kinetis_temp
/
CMakeLists.txt
6 lines
96 B
CMake
Raw
Normal View
History
Unescape
Escape
drivers: sensor: add driver for the nxp kinetis temperature sensor Add sensor driver for the internal temperature sensor present in the NXP Kinetis SoC series. The driver allows reading the die temperature and the voltage of the external voltage reference used for calculating the temperature. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2020-01-13 06:17:56 +08:00
# SPDX-License-Identifier: Apache-2.0
zephyr_library
(
)
drivers: sensor: clean up zephyr_library calls In drivers/sensor/CMakeLists.txt, we have various lines like this: add_subdirectory_ifdef(CONFIG_FOO foo) Then drivers/sensor/foo/CMakeLists.txt says: zephyr_library() zephyr_library_sources_ifdef(CONFIG_FOO foo.c) This is redundant; the foo/CMakeLists.txt won't be added to the build system unless CONFIG_FOO=y in the first place, so there's no need for extra boilerplate testing it again. Remove all these unnecessary instances in each sensor driver's CMakeLists.txt using this pattern: zephyr_library() zephyr_library_sources(foo.c) In a couple of places, the '.c' extension is missing. Add them in for consistency when that happens. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-06-30 06:12:34 +08:00
zephyr_library_sources
(
temp_kinetis.c
)