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:
Viktor Vladic
2022-02-07 19:55:49 -05:00
committed by GitHub
parent 490a0c473b
commit f4d02a2937
8 changed files with 41 additions and 16 deletions
+23
View File
@@ -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();