mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
486ae432e1
* [CAN] timestamp in us, and fix typo * [uavcan] Use CAN abstraction * [CAN] Add missing can2. * [WIP] CAN error handling --------- Co-authored-by: Fabien-B <Fabien-B@github.com>
29 lines
898 B
XML
29 lines
898 B
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="can" dir="mcu_periph" task="mcu">
|
|
<doc>
|
|
<description>
|
|
General CAN driver
|
|
To activate a specific CAN peripheral, define flag USE_CANx where x is your CAN peripheral number
|
|
</description>
|
|
<configure name="USE_CANFD" value="TRUE" description="Use CANFD or just CAN"/>
|
|
<define name="USE_CANx" value="FALSE" description="Enable the CANx port"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>mcu</depends>
|
|
</dep>
|
|
<header>
|
|
<file name="can.h" dir="mcu_periph"/>
|
|
</header>
|
|
<!-- <event fun="can_event()" cond="ifeq ($(ARCH), stm32)"/> -->
|
|
<makefile>
|
|
<configure name="USE_CANFD" default="FALSE"/>
|
|
<define name="USE_CANFD" value="$(USE_CANFD)"/>
|
|
<file name="can.c" dir="mcu_periph"/>
|
|
<file_arch name="can_arch.c" dir="mcu_periph"/>
|
|
<test>
|
|
<define name="USE_CAN1"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|