|
@ -27,14 +27,14 @@ |
|
|
#include "usbuart.h" |
|
|
#include "usbuart.h" |
|
|
#include "morse.h" |
|
|
#include "morse.h" |
|
|
|
|
|
|
|
|
#include <libopencm3/stm32/f1/rcc.h> |
|
|
#include <libopencm3/stm32/rcc.h> |
|
|
#include <libopencm3/cm3/scb.h> |
|
|
#include <libopencm3/cm3/scb.h> |
|
|
#include <libopencm3/cm3/scs.h> |
|
|
#include <libopencm3/cm3/scs.h> |
|
|
#include <libopencm3/cm3/nvic.h> |
|
|
#include <libopencm3/cm3/nvic.h> |
|
|
#include <libopencm3/stm32/exti.h> |
|
|
#include <libopencm3/stm32/exti.h> |
|
|
#include <libopencm3/stm32/usart.h> |
|
|
#include <libopencm3/stm32/usart.h> |
|
|
#include <libopencm3/usb/usbd.h> |
|
|
#include <libopencm3/usb/usbd.h> |
|
|
#include <libopencm3/stm32/f1/adc.h> |
|
|
#include <libopencm3/stm32/adc.h> |
|
|
|
|
|
|
|
|
static void adc_init(void); |
|
|
static void adc_init(void); |
|
|
static void setup_vbus_irq(void); |
|
|
static void setup_vbus_irq(void); |
|
@ -97,7 +97,7 @@ void platform_init(void) |
|
|
initialise_monitor_handles(); |
|
|
initialise_monitor_handles(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
rcc_clock_setup_in_hse_8mhz_out_72mhz(); |
|
|
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE8_72MHZ]); |
|
|
|
|
|
|
|
|
/* Enable peripherals */ |
|
|
/* Enable peripherals */ |
|
|
rcc_periph_clock_enable(RCC_USB); |
|
|
rcc_periph_clock_enable(RCC_USB); |
|
|