always enable debug (to need to save power)

This commit is contained in:
King Kévin 2018-02-13 17:33:06 +01:00
parent aa64816fc6
commit 6f8bbca2bf
1 changed files with 0 additions and 2 deletions

View File

@ -284,12 +284,10 @@ void main(void)
{
rcc_clock_setup_in_hse_8mhz_out_72mhz(); // use 8 MHz high speed external clock to generate 72 MHz internal clock
#if DEBUG
// enable functionalities for easier debug
DBGMCU_CR |= DBGMCU_CR_STANDBY; // allow debug also in standby mode (keep digital part and clock powered)
DBGMCU_CR |= DBGMCU_CR_STOP; // allow debug also in stop mode (keep clock powered)
DBGMCU_CR |= DBGMCU_CR_SLEEP; // allow debug also in sleep mode (keep clock powered)
#endif
board_setup(); // setup board
uart_setup(); // setup USART (for printing)