Adding config changes to allow PX4 to be built for the Excelsior board.

This commit is contained in:
jwilson
2016-05-05 08:34:31 +02:00
committed by Julian Oes
parent 0c5c111cdd
commit c87a8bedb6
7 changed files with 20 additions and 63 deletions
+1 -1
View File
@@ -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)
+5
View File
@@ -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
+1 -1
View File
@@ -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);
+5 -1
View File
@@ -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)