include/nuttx/can.h: remove dependency on CONFIG_NET_CAN

Remove dependency on CONFIG_NET_CAN for socketCAN definitions.

Definitions from this file are also used by arch/sim CAN
implementation, which is based on a host socketCAN interface.

With this change CONFIG_NET and CONFIG_NET_CAN don't need to
be enabled to support CAN character driver on sim.

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2025-05-13 17:11:01 +02:00
committed by Xiang Xiao
parent 5bf3110777
commit 486dabdd2d
-3
View File
@@ -33,8 +33,6 @@
#include <sys/socket.h>
#include <stdint.h>
#ifdef CONFIG_NET_CAN
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -383,5 +381,4 @@ extern "C"
}
#endif
#endif /* CONFIG_CAN */
#endif /* __INCLUDE_NUTTX_CAN_H */