Updated libopencm3 to current master. Made all examples compile again.
Be specifically careful with the usb examples. There is likely some breakage to be expected, not sure I updated all the drivers to the correct types for the respective chips.
This commit is contained in:
@@ -134,7 +134,7 @@ static void my_usart_print_int(uint32_t usart, int16_t value)
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_64MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_64MHZ]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ uint16_t exti_line_state;
|
||||
/* Set STM32 to 64 MHz. */
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_64MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_64MHZ]);
|
||||
}
|
||||
|
||||
static void gpio_setup(void)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/* Set STM32 to 64 MHz. */
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_64MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_64MHZ]);
|
||||
|
||||
/* Enable GPIOE clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOE);
|
||||
|
||||
@@ -127,7 +127,7 @@ static void my_usart_print_int(uint32_t usart, int32_t value)
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_64MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_64MHZ]);
|
||||
}
|
||||
|
||||
#define I2C_ACC_ADDR 0x19
|
||||
|
||||
@@ -138,7 +138,7 @@ static void my_usart_print_int(uint32_t usart, int32_t value)
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_64MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_64MHZ]);
|
||||
}
|
||||
|
||||
#define GYR_RNW (1 << 7) /* Write when zero */
|
||||
|
||||
@@ -251,10 +251,10 @@ int main(void)
|
||||
|
||||
usbd_device *usbd_dev;
|
||||
|
||||
rcc_clock_setup_hsi(&hsi_8mhz[CLOCK_48MHZ]);
|
||||
rcc_clock_setup_hsi(&rcc_hsi_8mhz[RCC_CLOCK_48MHZ]);
|
||||
usb_setup();
|
||||
|
||||
usbd_dev = usbd_init(&stm32f103_usb_driver, &dev, &config, usb_strings,
|
||||
usbd_dev = usbd_init(&st_usbfs_v1_usb_driver, &dev, &config, usb_strings,
|
||||
3, usbd_control_buffer, sizeof(usbd_control_buffer));
|
||||
usbd_register_set_config_callback(usbd_dev, cdcacm_set_config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user