cleanup: include/: move can.h to drivers/can.h
move can.h to drivers/can.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
8007266e6a
commit
c0c9396d44
15 changed files with 564 additions and 549 deletions
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
#include <kernel.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_CAN_LOG_LEVEL
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <syscall_handler.h>
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
|
||||
Z_SYSCALL_HANDLER(can_configure, dev, mode, bitrate) {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <string.h>
|
||||
#include <kernel.h>
|
||||
#include <stdbool.h>
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
#include "can_loopback.h"
|
||||
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef ZEPHYR_DRIVERS_CAN_LOOPBACK_CAN_H_
|
||||
#define ZEPHYR_DRIVERS_CAN_LOOPBACK_CAN_H_
|
||||
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
|
||||
#define DEV_DATA(dev) ((struct can_loopback_data *const)(dev)->driver_data)
|
||||
#define DEV_CFG(dev) \
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef _MCP2515_H_
|
||||
#define _MCP2515_H_
|
||||
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
|
||||
#define MCP2515_TX_CNT 3
|
||||
#define MCP2515_FRAME_LEN 13
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
#include <clock_control.h>
|
||||
#include <device.h>
|
||||
#include <misc/byteorder.h>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <soc.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
#include "can_stm32.h"
|
||||
|
||||
#include <logging/log.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
|
||||
#define ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
|
||||
|
||||
#include <can.h>
|
||||
#include <drivers/can.h>
|
||||
|
||||
#define DEV_DATA(dev) ((struct can_stm32_data *const)(dev)->driver_data)
|
||||
#define DEV_CFG(dev) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue