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:
@@ -120,7 +120,7 @@ int main(void)
|
||||
uint8_t channel_array[16];
|
||||
uint16_t temperature = 0;
|
||||
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
usart_setup();
|
||||
adc_setup();
|
||||
|
||||
@@ -140,7 +140,7 @@ int main(void)
|
||||
uint8_t channel_array[16];
|
||||
uint16_t temperature = 0;
|
||||
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
usart_setup();
|
||||
timer_setup();
|
||||
|
||||
@@ -152,7 +152,7 @@ int main(void)
|
||||
{
|
||||
uint8_t channel_array[16];
|
||||
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
usart_setup();
|
||||
timer_setup();
|
||||
|
||||
@@ -168,7 +168,7 @@ static void my_usart_print_int(uint32_t usart, int value)
|
||||
int main(void)
|
||||
{
|
||||
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
usart_setup();
|
||||
timer_setup();
|
||||
|
||||
@@ -116,7 +116,7 @@ int main(void)
|
||||
uint8_t channel_array[16];
|
||||
uint16_t temperature = 0;
|
||||
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
usart_setup();
|
||||
adc_setup();
|
||||
|
||||
@@ -227,7 +227,7 @@ void usb_lp_can_rx0_isr(void)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
gpio_setup();
|
||||
can_setup();
|
||||
systick_setup();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
/* Set STM32 to 72 MHz. */
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC, and AFIO clocks. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -31,7 +31,7 @@ int _write(int file, char *ptr, int len);
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -51,7 +51,7 @@ int _write(int file, char *ptr, int len);
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -61,7 +61,7 @@ int _write(int file, char *ptr, int len);
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA, GPIOB, GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock (for LED GPIOs). */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -117,7 +117,7 @@ uint8_t output_ring_buffer[BUFFER_SIZE];
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock (for LED GPIOs). */
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
@@ -29,7 +29,7 @@ int _write(int file, char *ptr, int len);
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_12mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE12_72MHZ]);
|
||||
|
||||
/* Enable GPIOA clock (for LED GPIOs). */
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
Reference in New Issue
Block a user