mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
CC3D - Allow building of a binary that is compatible with the OpenPilot
CC3D bootloader to allow easy switching between OpenPilot and Cleanflight. Submitted by Alessio Morale - http://forums.openpilot.org/topic/43569-baseflightcleanflight-ported-to-cc3d/?p=372149
This commit is contained in:
parent
1182f67b70
commit
acbede5492
4 changed files with 180 additions and 3 deletions
|
@ -93,7 +93,12 @@ void systemInit(bool overclock)
|
|||
// Configure the Flash Latency cycles and enable prefetch buffer
|
||||
SetSysClock(overclock);
|
||||
#endif
|
||||
#ifdef CC3D
|
||||
/* Accounts for OP Bootloader, set the Vector Table base address as specified in .ld file */
|
||||
extern void *isr_vector_table_base;
|
||||
|
||||
NVIC_SetVectorTable((uint32_t)&isr_vector_table_base, 0x0);
|
||||
#endif
|
||||
// Configure NVIC preempt/priority groups
|
||||
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue