mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Bootloader: support ZubaxGNSS
This commit is contained in:
parent
0ef2a60682
commit
230a817539
@ -58,6 +58,14 @@ int main(void)
|
|||||||
bool try_boot = false;
|
bool try_boot = false;
|
||||||
uint32_t timeout = HAL_BOOTLOADER_TIMEOUT;
|
uint32_t timeout = HAL_BOOTLOADER_TIMEOUT;
|
||||||
|
|
||||||
|
#ifdef HAL_BOARD_AP_PERIPH_ZUBAXGNSS
|
||||||
|
// setup remapping register for ZubaxGNSS
|
||||||
|
uint32_t mapr = AFIO->MAPR;
|
||||||
|
mapr &= ~AFIO_MAPR_SWJ_CFG;
|
||||||
|
mapr |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
|
||||||
|
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NO_FASTBOOT
|
#ifndef NO_FASTBOOT
|
||||||
enum rtc_boot_magic m = check_fast_reboot();
|
enum rtc_boot_magic m = check_fast_reboot();
|
||||||
if (stm32_was_watchdog_reset()) {
|
if (stm32_was_watchdog_reset()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user