mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
AP_Bootloader: support L496 MCUs
This commit is contained in:
parent
ca45fcbc70
commit
90bb0d6310
@ -291,13 +291,18 @@ jump_to_app()
|
|||||||
#elif defined(STM32G4)
|
#elif defined(STM32G4)
|
||||||
rccDisableAPB1R1(~0);
|
rccDisableAPB1R1(~0);
|
||||||
rccDisableAPB1R2(~0);
|
rccDisableAPB1R2(~0);
|
||||||
|
#elif defined(STM32L4)
|
||||||
|
rccDisableAPB1R1(~0);
|
||||||
|
rccDisableAPB1R2(~0);
|
||||||
#else
|
#else
|
||||||
rccDisableAPB1(~0);
|
rccDisableAPB1(~0);
|
||||||
#endif
|
#endif
|
||||||
rccDisableAPB2(~0);
|
rccDisableAPB2(~0);
|
||||||
#if HAL_USE_SERIAL_USB == TRUE
|
#if HAL_USE_SERIAL_USB == TRUE
|
||||||
rccResetOTG_FS();
|
rccResetOTG_FS();
|
||||||
|
#if defined(rccResetOTG_HS)
|
||||||
rccResetOTG_HS();
|
rccResetOTG_HS();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// disable all interrupt sources
|
// disable all interrupt sources
|
||||||
|
@ -133,6 +133,7 @@ AP_HW_HEREID 1043
|
|||||||
AP_HW_BirdCANdy 1044
|
AP_HW_BirdCANdy 1044
|
||||||
AP_HW_SKYSTARSF405DJI 1045
|
AP_HW_SKYSTARSF405DJI 1045
|
||||||
AP_HW_HITEC_AIRSPEED 1046
|
AP_HW_HITEC_AIRSPEED 1046
|
||||||
|
AP_HW_NucleoL496 1047
|
||||||
|
|
||||||
AP_HW_CUBEORANGE_PERIPH 1400
|
AP_HW_CUBEORANGE_PERIPH 1400
|
||||||
AP_HW_CUBEBLACK_PERIPH 1401
|
AP_HW_CUBEBLACK_PERIPH 1401
|
||||||
|
16
Tools/AP_Bootloader/mcu_l4.h
Normal file
16
Tools/AP_Bootloader/mcu_l4.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
MCU tables for STM32L4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(STM32L4)
|
||||||
|
|
||||||
|
#define STM32_UNKNOWN 0
|
||||||
|
|
||||||
|
mcu_des_t mcu_descriptions[] = {
|
||||||
|
{ STM32_UNKNOWN, "STM32L4??", '?'},
|
||||||
|
};
|
||||||
|
|
||||||
|
const mcu_rev_t silicon_revs[] = {
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // STM32L4
|
@ -17,6 +17,7 @@
|
|||||||
#include "mcu_f7.h"
|
#include "mcu_f7.h"
|
||||||
#include "mcu_h7.h"
|
#include "mcu_h7.h"
|
||||||
#include "mcu_g4.h"
|
#include "mcu_g4.h"
|
||||||
|
#include "mcu_l4.h"
|
||||||
|
|
||||||
// optional uprintf() code for debug
|
// optional uprintf() code for debug
|
||||||
// #define BOOTLOADER_DEBUG SD1
|
// #define BOOTLOADER_DEBUG SD1
|
||||||
|
Loading…
Reference in New Issue
Block a user