Tools: add can-zero board

This commit is contained in:
Ka Ru 2023-10-22 19:50:57 +02:00 committed by Lucas De Marchi
parent d728eef685
commit e384c78904
3 changed files with 15 additions and 0 deletions

View File

@ -1528,6 +1528,19 @@ class obal(linux):
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_OBAL_V1', CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_OBAL_V1',
) )
class canzero(linux):
toolchain = 'arm-linux-gnueabihf'
def __init__(self):
self.with_can = True
def configure_env(self, cfg, env):
super(canzero, self).configure_env(cfg, env)
env.DEFINES.update(
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_CANZERO',
)
class SITL_static(sitl): class SITL_static(sitl):
def configure_env(self, cfg, env): def configure_env(self, cfg, env):
super(SITL_static, self).configure_env(cfg, env) super(SITL_static, self).configure_env(cfg, env)

View File

@ -70,6 +70,7 @@ class BoardList(object):
Board("bbbmini"), Board("bbbmini"),
Board("blue"), Board("blue"),
Board("pxfmini"), Board("pxfmini"),
Board("canzero"),
Board("SITL_x86_64_linux_gnu"), Board("SITL_x86_64_linux_gnu"),
Board("SITL_arm_linux_gnueabihf"), Board("SITL_arm_linux_gnueabihf"),
] ]

View File

@ -68,6 +68,7 @@ class BoardSubType(enum.Enum):
LINUX_NAVIGATOR = 1023 LINUX_NAVIGATOR = 1023
LINUX_VNAV = 1024 LINUX_VNAV = 1024
LINUX_OBAL = 1025 LINUX_OBAL = 1025
LINUX_CANZERO = 1026
CHIBIOS_SKYVIPER_F412 = 5000 CHIBIOS_SKYVIPER_F412 = 5000
CHIBIOS_FMUV3 = 5001 CHIBIOS_FMUV3 = 5001
CHIBIOS_FMUV4 = 5002 CHIBIOS_FMUV4 = 5002