From a1abd1b6321734249ea5b2f02d26e348745df43a Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 11 Sep 2017 12:55:52 -1000 Subject: [PATCH] sitil:Use Non Arch specific Board identity API --- src/drivers/boards/sitl/CMakeLists.txt | 5 ++++- src/drivers/boards/sitl/board_config.h | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drivers/boards/sitl/CMakeLists.txt b/src/drivers/boards/sitl/CMakeLists.txt index f5d0da302b..0e1bba3e59 100644 --- a/src/drivers/boards/sitl/CMakeLists.txt +++ b/src/drivers/boards/sitl/CMakeLists.txt @@ -31,4 +31,7 @@ # ############################################################################ -px4_add_library(drivers_board sitl_led.c) +px4_add_library(drivers_board + sitl_led.c + ../common/board_identity.c + ) diff --git a/src/drivers/boards/sitl/board_config.h b/src/drivers/boards/sitl/board_config.h index 4a47f1d25e..38acc26351 100644 --- a/src/drivers/boards/sitl/board_config.h +++ b/src/drivers/boards/sitl/board_config.h @@ -39,9 +39,8 @@ #pragma once -#define BOARD_OVERRIDE_UUID "SIMULATIONID" // must be of length 12 (PX4_CPU_UUID_BYTE_LENGTH) -#define BOARD_OVERRIDE_MFGUID BOARD_OVERRIDE_UUID -#define BOARD_OVERRIDE_PX4_GUID "00000000" BOARD_OVERRIDE_UUID // must be of length 18 (PX4_GUID_BYTE_LENGTH) +#define BOARD_OVERRIDE_UUID "SIMULATIONID0000" // must be of length 16 +#define PX4_SOC_ARCH_ID 0x1003 #define BOARD_NAME "SITL" #define BOARD_BATTERY1_V_DIV (10.177939394f)