cleanup: include/: move misc/util.h to sys/util.h
move misc/util.h to sys/util.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d222553931
commit
a2fd7d70ec
295 changed files with 1103 additions and 1088 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <kernel.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <toolchain.h>
|
||||
#include <cache.h>
|
||||
#include <linker/linker-defs.h>
|
||||
|
|
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
#include <kernel.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/dlist.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <kernel.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <arch/arm/cortex_m/cmsis.h>
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
|
||||
#include <toolchain.h>
|
||||
#include <linker/sections.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
GTEXT(__start)
|
||||
GTEXT(_vector_table)
|
||||
|
|
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
#include <kernel.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/dlist.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ extern "C" {
|
|||
#ifndef _ASMLANGUAGE
|
||||
#include <kernel.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/dlist.h>
|
||||
#include <kernel_internal.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <kernel.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <toolchain.h>
|
||||
#include <cache.h>
|
||||
#include <cache_private.h>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <asm_inline.h>
|
||||
#include <exception.h>
|
||||
#include <kernel_arch_thread.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
#include <kernel.h>
|
||||
|
@ -110,7 +110,7 @@
|
|||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifdef _THREAD_WRAPPER_REQUIRED
|
||||
extern void z_x86_thread_entry_wrapper(k_thread_entry_t entry,
|
||||
|
|
|
@ -94,7 +94,7 @@ cprint("")
|
|||
|
||||
# Re-include the core-isa header and be sure our definitions match, for sanity
|
||||
cprint("#include <xtensa/config/core-isa.h>")
|
||||
cprint("#include <misc/util.h>")
|
||||
cprint("#include <sys/util.h>")
|
||||
cprint("#include <sw_isr_table.h>")
|
||||
cprint("")
|
||||
for l in ints_by_lvl:
|
||||
|
|
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
#include <kernel_internal.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <sys/dlist.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* Bitmask definitions for the struct k_thread->flags bit field */
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "posix_soc_if.h"
|
||||
#include "posix_arch_internal.h"
|
||||
#include "sdl_events.h"
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
|
||||
static u64_t simu_time; /* The actual time as known by the HW models */
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <soc.h>
|
||||
#include "hw_models_top.h"
|
||||
#include <stdlib.h>
|
||||
#include "misc/util.h"
|
||||
#include <sys/util.h>
|
||||
#include "cmdline.h"
|
||||
|
||||
void posix_exit(int exit_code)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "board_soc.h"
|
||||
#include "zephyr/types.h"
|
||||
#include "posix_trace.h"
|
||||
#include "misc/util.h"
|
||||
#include <sys/util.h>
|
||||
#include "cmdline.h"
|
||||
#include "soc.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#define _POSIX_NRF52_BOARD_SOC_H
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <soc.h>
|
||||
#include <drivers/adc.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define ADC_CONTEXT_USES_KERNEL_TIMER
|
||||
#include "adc_context.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <soc.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/i2c.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <init.h>
|
||||
#include <drivers/uart.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <init.h>
|
||||
#include <drivers/uart.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/stack.h>
|
||||
#include <sys/printk.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
|
||||
#include <init.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <bluetooth/hci.h>
|
||||
#include <bluetooth/hci_driver.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <init.h>
|
||||
#include <drivers/spi.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <bluetooth/hci.h>
|
||||
#include <bluetooth/hci_driver.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <zephyr.h>
|
||||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/byteorder.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <string.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/arm_clock_control.h>
|
||||
|
||||
#define MAINCLK_BASE_FREQ 24000000
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <soc.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include "clock_stm32_ll_common.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
#include <drivers/counter.h>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <drivers/counter.h>
|
||||
#include <power/power.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "qm_aon_counters.h"
|
||||
#include "qm_isr.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <kernel.h>
|
||||
#include <power/power.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "qm_isr.h"
|
||||
#include "qm_rtc.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <drivers/i2c.h>
|
||||
#include <kernel.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* Configuration Read Only Registers */
|
||||
#define ATAES_SERIALNUM_REG 0xF000
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <drivers/i2c.h>
|
||||
#include <display/grove_lcd.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_DISPLAY_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <stdio.h>
|
||||
#include <soc.h>
|
||||
#include <string.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_DMA_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <random/rand32.h>
|
||||
#include <init.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <errno.h>
|
||||
#include <soc.h>
|
||||
#include <sys/printk.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "device.h"
|
||||
#include <drivers/entropy.h>
|
||||
#include "init.h"
|
||||
#include "misc/util.h"
|
||||
#include <sys/util.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "posix_trace.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <pci/pci_mgr.h>
|
||||
#endif /* CONFIG_PCI */
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
|
||||
#include <device.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <net/net_pkt.h>
|
||||
#include <net/net_if.h>
|
||||
|
|
|
@ -27,7 +27,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
|||
#include <kernel.h>
|
||||
#include <device.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <net/net_pkt.h>
|
||||
|
|
|
@ -12,7 +12,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
|||
#include <kernel.h>
|
||||
#include <device.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <net/net_pkt.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <drivers/flash.h>
|
||||
#include <init.h>
|
||||
#include <kernel.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <random/rand32.h>
|
||||
#include <stats/stats.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <errno.h>
|
||||
#include <init.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include "flash_priv.h"
|
||||
#include "altera_generic_quad_spi_controller2_regs.h"
|
||||
#include "altera_generic_quad_spi_controller2.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <init.h>
|
||||
|
||||
#include <drivers/flash.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include "flash_priv.h"
|
||||
|
||||
#include "qm_flash.h"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef __SPI_NOR_H__
|
||||
#define __SPI_NOR_H__
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define SPI_NOR_MAX_ID_LEN 3
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <soc.h>
|
||||
#include <sys/sys_io.h>
|
||||
#include <init.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <drivers/clock_control.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <kernel.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/pinmux.h>
|
||||
|
||||
#include "gpio_utils.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <kernel.h>
|
||||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <drivers/i2c.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <drivers/gpio.h>
|
||||
#include <init.h>
|
||||
#include <sys/sys_io.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "qm_gpio.h"
|
||||
#include "gpio_utils.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <drivers/gpio.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "qm_ss_gpio.h"
|
||||
#include "qm_ss_isr.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <soc.h>
|
||||
#include <init.h>
|
||||
#include <sys/sys_io.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "gpio_sch.h"
|
||||
#include "gpio_utils.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <device.h>
|
||||
#include <soc.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "gpio_utils.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <pinmux/stm32/pinmux_stm32.h>
|
||||
#include <drivers/pinmux.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <interrupt_controller/exti_stm32.h>
|
||||
|
||||
#include "gpio_stm32.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <drivers/gpio.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifdef CONFIG_HAS_DTS_I2C
|
||||
#define CONFIG_GPIO_SX1509B_DEV_NAME DT_INST_0_SEMTECH_SX1509B_LABEL
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <errno.h>
|
||||
#include <sys/sys_io.h>
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifdef CONFIG_IOAPIC
|
||||
#include <drivers/interrupt_controller/ioapic.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <drivers/gpio.h>
|
||||
#include <gpio/gpio_esp32.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Number of entries in hardware command queue */
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <em_cmu.h>
|
||||
#include <em_i2c.h>
|
||||
#include <em_gpio.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <drivers/i2c.h>
|
||||
#include <soc.h>
|
||||
#include <i2c_imx.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(i2c_imx);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <soc.h>
|
||||
#include <fsl_i2c.h>
|
||||
#include <fsl_clock.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(i2c_mcux);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <errno.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <altera_common.h>
|
||||
#include "altera_avalon_i2c.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <errno.h>
|
||||
#include <drivers/i2c.h>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include <drivers/i2c.h>
|
||||
#include <drivers/led.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <zephyr.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_LED_LOG_LEVEL
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <drivers/i2c.h>
|
||||
#include <drivers/led.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <zephyr.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_LED_LOG_LEVEL
|
||||
|
|
|
@ -30,7 +30,7 @@ LOG_MODULE_REGISTER(lpd880x);
|
|||
#include <zephyr.h>
|
||||
#include <device.h>
|
||||
#include <drivers/spi.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/*
|
||||
* LPD880X SPI master configuration:
|
||||
|
|
|
@ -15,7 +15,7 @@ LOG_MODULE_REGISTER(ws2812);
|
|||
#include <zephyr.h>
|
||||
#include <device.h>
|
||||
#include <drivers/spi.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/*
|
||||
* WS2812-ish SPI master configuration:
|
||||
|
|
|
@ -24,7 +24,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
|||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <net/buf.h>
|
||||
#include <net/net_pkt.h>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/__assert.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <toolchain.h>
|
||||
#include <device.h>
|
||||
#include <drivers/pinmux.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <soc/soc.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/pinmux.h>
|
||||
|
||||
/* DR_REG_IO_MUX_BASE is a 32-bit constant. Define a pin mux table
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <kernel.h>
|
||||
#include <init.h>
|
||||
#include <power/power.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include "qm_pwm.h"
|
||||
#include "clk.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <clock_control/stm32_clock_control.h>
|
||||
#include <drivers/clock_control.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <soc.h>
|
||||
#include <drivers/rtc.h>
|
||||
|
|
|
@ -15,7 +15,7 @@ LOG_MODULE_REGISTER(rtc_mcux);
|
|||
#include <drivers/rtc.h>
|
||||
#include <power/power.h>
|
||||
#include <soc.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <fsl_rtc.h>
|
||||
|
||||
struct mcux_rtc_config {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <drivers/gpio.h>
|
||||
#include <drivers/spi.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/*
|
||||
* ADXL372 registers definition
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include "adxl372.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <logging/log.h>
|
||||
|
||||
#include "ak8975.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <drivers/i2c.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define AMG88XX_I2C_ADDRESS CONFIG_AMG88XX_I2C_ADDR
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include "amg88xx.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <drivers/i2c.h>
|
||||
#include <kernel.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_
|
||||
|
||||
#include <device.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
struct iaq_registers {
|
||||
u16_t co2_pred;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include "apds9960.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define ZEPHYR_DRIVERS_SENSOR_BMA280_BMA280_H_
|
||||
|
||||
#include <device.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <zephyr/types.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#define BMC150_MAGN_REG_CHIP_ID 0x40
|
||||
#define BMC150_MAGN_CHIP_ID_VAL 0x32
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <drivers/i2c.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* registers */
|
||||
#define BMG160_REG_CHIPID 0x00
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <drivers/gpio.h>
|
||||
#include <drivers/spi.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* registers */
|
||||
#define BMI160_REG_CHIPID 0x00
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <zephyr/types.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <stdint.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
#include <kernel.h>
|
||||
#include <device.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <drivers/i2c.h>
|
||||
#include <kernel.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* Registers */
|
||||
#define CCS811_REG_STATUS 0x00
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <string.h>
|
||||
#include <zephyr.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <drivers/i2c.h>
|
||||
#include <kernel.h>
|
||||
#include <sys/byteorder.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <misc/util.h>
|
||||
#include <sys/util.h>
|
||||
|
||||
/* Registers */
|
||||
#define ENS210_REG_PART_ID 0x00
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue