mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 03:21:36 +08:00
MatekH743 board_id, usb vid/pid changes, and MPU6000 delay before transfer - not after (#18733)
* Make board_id compatible with ardupilot * Initialize outputs for CAM1/CAM2 and Vsw pad * Correct board type 1013 in bootloader to match AP * Change usb vendor string to "Matek" * Change cdcacm pid to 1013 * Comment out FLASH_BASED_PARAMS because of #15331
This commit is contained in:
@@ -60,6 +60,10 @@
|
||||
#include <px4_platform/gpio.h>
|
||||
#include <px4_platform/board_dma_alloc.h>
|
||||
|
||||
// # if defined(FLASH_BASED_PARAMS)
|
||||
// # include <parameters/flashparams/flashfs.h>
|
||||
// #endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
extern void led_init(void);
|
||||
extern void led_on(int led);
|
||||
@@ -174,6 +178,25 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
// #if defined(FLASH_BASED_PARAMS)
|
||||
// static sector_descriptor_t params_sector_map[] = {
|
||||
// {6, 128 * 1024, 0x081C0000},
|
||||
// {7, 128 * 1024, 0x081E0000},
|
||||
// {0, 0, 0},
|
||||
// };
|
||||
|
||||
// /* Initialize the flashfs layer to use heap allocated memory */
|
||||
// int result = parameter_flashfs_init(params_sector_map, NULL, 0);
|
||||
|
||||
// if (result != OK) {
|
||||
// syslog(LOG_ERR, "[boot] FAILED to init params in FLASH %d\n", result);
|
||||
// led_on(LED_BLUE);
|
||||
// return -ENODEV;
|
||||
// }
|
||||
|
||||
// #endif
|
||||
|
||||
/* Configure the HW based on the manifest */
|
||||
px4_platform_configure();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user