mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Made mpuDetectionResult and mpuConfiguration gyro and acc instance variables
This commit is contained in:
parent
115b1e76f9
commit
22ddc2ccf9
15 changed files with 113 additions and 108 deletions
|
@ -34,8 +34,9 @@ void SetSysClock(void);
|
|||
|
||||
void systemReset(void)
|
||||
{
|
||||
if (mpuConfiguration.reset)
|
||||
mpuConfiguration.reset();
|
||||
if (mpuReset) {
|
||||
mpuReset();
|
||||
}
|
||||
|
||||
__disable_irq();
|
||||
NVIC_SystemReset();
|
||||
|
@ -43,8 +44,9 @@ void systemReset(void)
|
|||
|
||||
void systemResetToBootloader(void)
|
||||
{
|
||||
if (mpuConfiguration.reset)
|
||||
mpuConfiguration.reset();
|
||||
if (mpuReset) {
|
||||
mpuReset();
|
||||
}
|
||||
|
||||
*((uint32_t *)0x2001FFFC) = 0xDEADBEEF; // 128KB SRAM STM32F4XX
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue