Happy times: things work on real hardware!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user