@@ -50,12 +50,13 @@ ReturnCode LowPower::init(GpioPin &timing_pin)
|
||||
ReturnCode LowPower::enable_debug()
|
||||
{
|
||||
/* Enable Clocks */
|
||||
// FIXME for all boards
|
||||
// SET(RCC->APB2ENR, RCC_APB2ENR_DBGEN);
|
||||
// SET(RCC->APB2SMENR, RCC_APB2SMENR_DBGSMEN);
|
||||
|
||||
// SET(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
|
||||
// SET(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
|
||||
// SET(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
|
||||
SET(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
|
||||
SET(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
|
||||
SET(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
|
||||
|
||||
return ReturnCode::OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user