mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 09:07:34 +08:00
drivers:Use CONFIG_BOARD_ROOT_PATH instead of string constant
This commit is contained in:
committed by
Daniel Agar
parent
3fa9cda505
commit
d0d9aaa6e9
@@ -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*/
|
||||
|
||||
@@ -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 "_"
|
||||
|
||||
Reference in New Issue
Block a user