net: canbus: Rename canbus to canbus_raw
Rename the socket_can implementation from CANBUS to CANBUS_RAW. This is a preperation for 6LoCAN which is a CANBUS L2 for IPv6. Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
This commit is contained in:
parent
5ef7eea6e2
commit
c8c5f3bbf3
7 changed files with 60 additions and 11 deletions
|
@ -114,11 +114,11 @@ NET_L2_DECLARE_PUBLIC(BLUETOOTH_L2);
|
|||
NET_L2_DECLARE_PUBLIC(OPENTHREAD_L2);
|
||||
#endif /* CONFIG_NET_L2_OPENTHREAD */
|
||||
|
||||
#ifdef CONFIG_NET_L2_CANBUS
|
||||
#define CANBUS_L2 CANBUS
|
||||
#define CANBUS_L2_CTX_TYPE void*
|
||||
NET_L2_DECLARE_PUBLIC(CANBUS_L2);
|
||||
#endif /* CONFIG_NET_L2_CANBUS */
|
||||
#ifdef CONFIG_NET_L2_CANBUS_RAW
|
||||
#define CANBUS_RAW_L2 CANBUS_RAW
|
||||
#define CANBUS_RAW_L2_CTX_TYPE void*
|
||||
NET_L2_DECLARE_PUBLIC(CANBUS_RAW_L2);
|
||||
#endif /* CONFIG_NET_L2_CANBUS_RAW */
|
||||
|
||||
#define NET_L2_INIT(_name, _recv_fn, _send_fn, _enable_fn, _get_flags_fn) \
|
||||
const struct net_l2 (NET_L2_GET_NAME(_name)) __used \
|
||||
|
|
|
@ -56,7 +56,7 @@ enum net_link_type {
|
|||
/** Dummy link address. Used in testing apps and loopback support. */
|
||||
NET_LINK_DUMMY,
|
||||
/** CANBUS link address. */
|
||||
NET_LINK_CANBUS,
|
||||
NET_LINK_CANBUS_RAW,
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue