Updated all rcc_clock_setups to use the new lookup tables.
The old "one function per config" system is depricated for quite a while now...
This commit is contained in:
@@ -209,7 +209,7 @@ void usb_lp_can_rx0_isr(void)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
gpio_setup();
|
||||
can_setup();
|
||||
systick_setup();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
static void clock_setup(void)
|
||||
{
|
||||
/* Set STM32 to 72 MHz. */
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -238,7 +238,7 @@ static const uint16_t gamma_table_3_0[] = {
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
|
||||
/* Enable TIM3 clock. */
|
||||
rcc_periph_clock_enable(RCC_TIM3);
|
||||
|
||||
@@ -65,7 +65,7 @@ void sys_tick_handler(void)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
gpio_setup();
|
||||
|
||||
gpio_clear(GPIOA, GPIO7); /* LED1 on */
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock (for LED GPIOs). */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock (for LED GPIOs). */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
Reference in New Issue
Block a user