Tools: cleanup more defines and classes

This commit is contained in:
Andrew Tridgell 2023-04-08 14:13:44 +10:00
parent 78862a334e
commit c53e5eaafc

View File

@ -643,8 +643,6 @@ class sitl(Board):
if self.with_can:
cfg.define('HAL_NUM_CAN_IFACES', 2)
cfg.define('UAVCAN_EXCEPTIONS', 0)
cfg.define('UAVCAN_SUPPORT_CANFD', 1)
env.DEFINES.update(CANARD_MULTI_IFACE=1,
CANARD_IFACE_ALL = 0x3,
CANARD_ENABLE_CANFD = 1)
@ -1177,8 +1175,6 @@ class linux(Board):
if self.with_can and cfg.options.board == 'linux':
cfg.env.HAL_NUM_CAN_IFACES = 2
cfg.define('HAL_NUM_CAN_IFACES', 2)
cfg.define('UAVCAN_EXCEPTIONS', 0)
cfg.define('UAVCAN_SUPPORT_CANFD', 1)
cfg.define('HAL_CANFD_SUPPORTED', 1)
cfg.define('CANARD_ENABLE_CANFD', 1)