drivers:Use CONFIG_BOARD_ROOT_PATH instead of string constant

This commit is contained in:
David Sidrane
2024-04-11 03:30:21 -07:00
committed by Daniel Agar
parent 3fa9cda505
commit d0d9aaa6e9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
#include <stdbool.h>
#include <systemlib/mavlink_log.h>
#define TAP_ESC_FW_SEARCH_PATHS {"/etc/extras/tap_esc.bin", "/fs/microsd/tap_esc.bin", nullptr }
#define TAP_ESC_FW_SEARCH_PATHS {"/etc/extras/tap_esc.bin", CONFIG_BOARD_ROOT_PATH "/tap_esc.bin", nullptr }
#define PROTO_SUPPORT_BL_REV 5 /**< supported bootloader protocol revision */
#define SYNC_RETRY_TIMES 5 /**< (uint8) esc sync failed allow retry times*/
#define UPLOADER_RETRY_TIMES 2 /**< esc uploader failed allow retry times*/
+1 -1
View File
@@ -49,7 +49,7 @@
// firmware paths
#define UAVCAN_MAX_PATH_LENGTH (128 + 40)
#define UAVCAN_SD_ROOT_PATH "/fs/microsd/"
#define UAVCAN_SD_ROOT_PATH CONFIG_BOARD_ROOT_PATH "/"
#define UAVCAN_FIRMWARE_PATH UAVCAN_SD_ROOT_PATH"ufw"
#define UAVCAN_ROMFS_FW_PATH "/etc/uavcan/fw"
#define UAVCAN_ROMFS_FW_PREFIX "_"