Implement softreset detection for STM32F3xx based targets
Function still needs to be tested on target hardware
This commit is contained in:
parent
1be3e8e550
commit
8d1cfe633e
|
@ -70,6 +70,8 @@ void enableGPIOPowerUsageAndNoiseReductions(void)
|
|||
|
||||
bool isMPUSoftReset(void)
|
||||
{
|
||||
// not implemented yet for STM32F3xx
|
||||
return false;
|
||||
if (RCC->CSR & RCC_CSR_SFTRSTF)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue