You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
338 B
20 lines
338 B
8 years ago
|
#include <libopencm3/stm32/rcc.h>
|
||
|
|
||
|
#include <rcc.h>
|
||
|
|
||
|
int rcc_init(void)
|
||
|
{
|
||
|
rcc_periph_clock_enable(RCC_AFIO);
|
||
|
rcc_periph_clock_enable(RCC_GPIOA);
|
||
|
rcc_periph_clock_enable(RCC_GPIOB);
|
||
|
rcc_periph_clock_enable(RCC_SPI1);
|
||
|
rcc_periph_clock_enable(RCC_USART1);
|
||
|
rcc_periph_clock_enable(RCC_USART2);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void rcc_cleanup(void)
|
||
|
{
|
||
|
}
|