1
0
Fork 0
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:
Martin Budden 2016-12-12 16:45:43 +00:00
parent 115b1e76f9
commit 22ddc2ccf9
15 changed files with 113 additions and 108 deletions

View file

@ -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