refactor tree, add ecad, mcad
This commit is contained in:
@@ -29,7 +29,7 @@ uint32_t wakeups = 0;
|
||||
|
||||
namespace BSP {
|
||||
|
||||
using Common::ReturnCode;
|
||||
using BSP::ReturnCode;
|
||||
|
||||
ReturnCode LowPower::init()
|
||||
{
|
||||
@@ -40,12 +40,12 @@ ReturnCode LowPower::init()
|
||||
ReturnCode LowPower::enable_debug()
|
||||
{
|
||||
/* Enable Clocks */
|
||||
SET(RCC->APB2ENR, RCC_APB2ENR_DBGEN);
|
||||
SET(RCC->APB2SMENR, RCC_APB2SMENR_DBGSMEN);
|
||||
// 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