mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:13:34 +08:00
Adding config changes to allow PX4 to be built for the Excelsior board.
This commit is contained in:
@@ -4,7 +4,7 @@ px4_posix_generate_builtin_commands(
|
||||
OUT apps.h
|
||||
MODULE_LIST ${module_libraries})
|
||||
|
||||
if ("${BOARD}" STREQUAL "eagle")
|
||||
if ("${BOARD}" STREQUAL "eagle" OR ("${BOARD}" STREQUAL "excelsior"))
|
||||
|
||||
include(fastrpc)
|
||||
include(linux_app)
|
||||
|
||||
@@ -75,6 +75,11 @@
|
||||
#define HW_ARCH "LINUXTEST"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_BOARD_EXCELSIOR
|
||||
#define HW_ARCH "LINUXTEST"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_ARCH_BOARD_RPI2
|
||||
#define HW_ARCH "LINUXTEST"
|
||||
#endif
|
||||
|
||||
@@ -166,7 +166,7 @@ hrt_abstime _hrt_absolute_time_internal(void)
|
||||
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return ts_to_abstime(&ts) + dsp_offset;
|
||||
|
||||
#elif defined(__PX4_POSIX_EAGLE)
|
||||
#elif (defined(__PX4_POSIX_EAGLE) || defined(__PX4_POSIX_EXCELSIOR))
|
||||
// Don't do any offseting on the Linux side on the Snapdragon.
|
||||
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return ts_to_abstime(&ts);
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#define MAX_SHMEM_PARAMS 3850 //MAP_SIZE - (LOCK_SIZE - sizeof(struct shmem_info))
|
||||
#define MAX_SHMEM_PARAMS 2000 //MAP_SIZE - (LOCK_SIZE - sizeof(struct shmem_info))
|
||||
|
||||
struct shmem_info {
|
||||
union param_value_u params_val[MAX_SHMEM_PARAMS];
|
||||
@@ -44,7 +44,11 @@ struct shmem_info {
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
|
||||
#if (defined(__PX4_POSIX_EXCELSIOR) || defined(__PX4_QURT_EXCELSIOR))
|
||||
#define MAP_ADDRESS 0x861FC000
|
||||
#else
|
||||
#define MAP_ADDRESS 0xfbfc000
|
||||
#endif
|
||||
#define MAP_SIZE 16384
|
||||
#define MAP_MASK (MAP_SIZE - 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user