adapt clock setting to libopencm3 update
This commit is contained in:
parent
5e154a57e3
commit
3577f1a0f4
|
@ -279,7 +279,7 @@ static void process_command(char* str)
|
||||||
void main(void);
|
void main(void);
|
||||||
void main(void)
|
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_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]); // use 8 MHz high speed external clock to generate 72 MHz internal clock
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// enable functionalities for easier debug
|
// enable functionalities for easier debug
|
||||||
|
|
|
@ -83,7 +83,7 @@ void main(void)
|
||||||
(*(void(**)(void))((uint32_t)application + 4))(); // start application (by jumping to the reset function which address is stored as second entry of the vector table)
|
(*(void(**)(void))((uint32_t)application + 4))(); // start application (by jumping to the reset function which address is stored as second entry of the vector table)
|
||||||
}
|
}
|
||||||
|
|
||||||
rcc_clock_setup_in_hse_8mhz_out_72mhz(); // start main clock
|
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]); // start main clock
|
||||||
board_setup(); // setup board to control LED
|
board_setup(); // setup board to control LED
|
||||||
led_on(); // indicate bootloader started
|
led_on(); // indicate bootloader started
|
||||||
#if defined(BUSVOODOO)
|
#if defined(BUSVOODOO)
|
||||||
|
|
Loading…
Reference in New Issue