Implement softreset detection for STM32F3xx based targets

Function still needs to be tested on target hardware
This commit is contained in:
Michael Jakob 2014-12-07 11:56:36 +01:00 committed by Dominic Clifton
parent 1be3e8e550
commit 8d1cfe633e
1 changed files with 4 additions and 2 deletions

View File

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