application: ony prevent clock halt when in debugging mode
This commit is contained in:
parent
46341317be
commit
de6d3cb134
|
@ -262,23 +262,19 @@ void main(void)
|
||||||
{
|
{
|
||||||
rcc_clock_setup_in_hse_8mhz_out_72mhz(); // use 8 MHz high speed external clock to generate 72 MHz internal clock
|
rcc_clock_setup_in_hse_8mhz_out_72mhz(); // use 8 MHz high speed external clock to generate 72 MHz internal clock
|
||||||
|
|
||||||
|
#if defined(DEBUG) && DEBUG
|
||||||
// enable functionalities for easier 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_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_STOP; // allow debug also in stop mode (keep clock powered)
|
||||||
DBGMCU_CR |= DBGMCU_CR_SLEEP; // allow debug also in sleep mode (keep clock powered)
|
DBGMCU_CR |= DBGMCU_CR_SLEEP; // allow debug also in sleep mode (keep clock powered)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// setup board
|
||||||
board_setup(); // setup board
|
board_setup(); // setup board
|
||||||
uart_setup(); // setup USART (for printing)
|
uart_setup(); // setup USART (for printing)
|
||||||
usb_cdcacm_setup(); // setup USB CDC ACM (for printing)
|
usb_cdcacm_setup(); // setup USB CDC ACM (for printing)
|
||||||
|
|
||||||
busvoodoo_setup(); // setup BusVoodoo board
|
busvoodoo_setup(); // setup BusVoodoo board
|
||||||
printf("\nwelcome to BusVoodoo ("); // print welcome message
|
printf("\nwelcome to BusVoodoo (%s)\n", busvoodoo_full ? "full" : "light"); // print welcome message
|
||||||
if (busvoodoo_full) {
|
|
||||||
printf("full");
|
|
||||||
} else {
|
|
||||||
printf("light");
|
|
||||||
}
|
|
||||||
printf(")\n");
|
|
||||||
|
|
||||||
// setup terminal
|
// setup terminal
|
||||||
terminal_prefix = "BV"; // set default prefix
|
terminal_prefix = "BV"; // set default prefix
|
||||||
|
|
Loading…
Reference in New Issue