File tree Expand file tree Collapse file tree 3 files changed +45
-390
lines changed
libraries/AP_HAL_ChibiOS/hwdef/BeyondRobotixM Expand file tree Collapse file tree 3 files changed +45
-390
lines changed Original file line number Diff line number Diff line change 2121 boards. Instead it uses the ChibiOS APIs directly
2222 */
2323
24- #include < AP_HAL/AP_HAL.h>
24+ // #include <AP_HAL/AP_HAL.h>
2525#include " ch.h"
26- #include " hal.h"
26+ // #include "hal.h"
2727#include " hwdef.h"
28- #include < AP_HAL_ChibiOS/hwdef/common/usbcfg.h>
28+
29+ // #include <AP_HAL_ChibiOS/hwdef/common/usbcfg.h>
2930#include < AP_HAL_ChibiOS/hwdef/common/stm32_util.h>
3031#include < AP_HAL_ChibiOS/hwdef/common/watchdog.h>
3132#include " support.h"
@@ -68,7 +69,23 @@ static BL_Network network;
6869
6970int main (void )
7071{
71- printf (" Start" );
72+ // #ifndef APP_START_ADDRESS
73+ // #define APP_START_ADDRESS (FLASH_LOAD_ADDRESS + (FLASH_BOOTLOADER_LOAD_KB + APP_START_OFFSET_KB)*1024U)
74+ // #endif
75+
76+ // chSysLock();
77+ // rccDisableAPB1R1(~0);
78+ // rccDisableAPB1R2(~0);
79+ // // port_disable();
80+
81+ // const uint32_t *app_base = (const uint32_t *)(APP_START_ADDRESS);
82+
83+ // asm volatile("mov sp, %0" : : "r"(app_base[0]));
84+ // asm volatile("msr msp, %0" : : "r"(app_base[0])); // Set Main Stack Pointer
85+
86+ // // Jump to the application entry point
87+ // asm volatile("bx %0" : : "r"(app_base[1])); // Jump to the application
88+
7289#ifdef AP_BOOTLOADER_CUSTOM_HERE4
7390 custom_startup ();
7491#endif
You can’t perform that action at this time.
0 commit comments