Happy times: things work on real hardware!

This commit is contained in:
2019-06-02 21:34:18 -07:00
parent a7f1ffc1b5
commit 1cc2f7adf4
27 changed files with 9353 additions and 9057 deletions

View File

@@ -32,7 +32,8 @@ using Common::ReturnCode;
ReturnCode LowPower::init()
{
/* Enable Clocks */
SET(RCC->APB1ENR, RCC_APB1ENR_PWREN);
SET(RCC->APB2ENR, RCC_APB2ENR_DBGEN);
SET(RCC->APB2SMENR, RCC_APB2SMENR_DBGSMEN);
// FIXME: Make these configurable, will mess with power consumption
SET(DBGMCU->CR, DBGMCU_CR_DBG_STOP);