rfdsatt: move away from deprecated libopencm3 APIs

This resolves compiler warnings about the use of deprecated APIs.
This commit is contained in:
Harald Welte 2021-03-28 22:08:20 +02:00
parent 436ba01a47
commit 13ae607484
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ void msleep(uint32_t delay)
static void clock_setup(void)
{
rcc_clock_setup_in_hsi_out_48mhz();
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_48MHZ]);
/* HCLK=48MHz; ADC=6MHz; APB1=24MHz; APB2=48MHz; USB=48MHz */
/* tick rate of 1ms */
@ -97,7 +97,7 @@ static void i2c_setup(void)
#ifdef STM32F1
/* APB1 runs at 24 MHz */
i2c_set_clock_frequency(I2C1, I2C_CR2_FREQ_24MHZ);
i2c_set_clock_frequency(I2C1, 24);
#endif
/* 400 kHz fast mode I2C */