[stm32f0xx] Remove remaining references to STM32F0xx_StdPeriph_Driver.
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
#include <arch/ops.h>
|
||||
#include <dev/uart.h>
|
||||
#include <target/debugconfig.h>
|
||||
#include <stm32f0xx_rcc.h>
|
||||
#include <stm32f0xx_usart.h>
|
||||
#include <arch/arm/cm.h>
|
||||
|
||||
void stm32_debug_early_init(void)
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <kernel/event.h>
|
||||
#include <kernel/mutex.h>
|
||||
#include <platform/dma.h>
|
||||
#include <platform/rcc.h>
|
||||
|
||||
#define SPI_SR_FRLVL_VAL(reg) ((reg) >> 9 & 0x3)
|
||||
#define SPI_SR_FTLVL_VAL(reg) ((reg) >> 11 & 0x3)
|
||||
@@ -54,12 +55,9 @@ void spi_init(spi_data_size_t data_size,
|
||||
|
||||
mutex_init(&spi_mutex);
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);
|
||||
|
||||
regs->CR1 = cpol | cpha | bit_order | prescaler
|
||||
| SPI_Direction_2Lines_FullDuplex
|
||||
| SPI_NSS_Soft;
|
||||
stm32_rcc_set_enable(STM32_RCC_CLK_SPI1, true);
|
||||
|
||||
regs->CR1 = cpol | cpha | bit_order | prescaler | SPI_CR1_SSM;
|
||||
|
||||
temp_reg = regs->CR2;
|
||||
temp_reg &= ~(SPI_CR2_DS | SPI_CR2_FRXTH);
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
#include <kernel/thread.h>
|
||||
#include <platform.h>
|
||||
#include <platform/timer.h>
|
||||
#include <stm32f0xx_rcc.h>
|
||||
#include <stm32f0xx_tim.h>
|
||||
#include <arch/arm/cm.h>
|
||||
|
||||
#define LOCAL_TRACE 0
|
||||
|
||||
@@ -26,11 +26,6 @@
|
||||
#include <compiler.h>
|
||||
#include <dev/gpio.h>
|
||||
#include <platform/gpio.h>
|
||||
#include <stm32f0xx_usart.h>
|
||||
#include <stm32f0xx_rcc.h>
|
||||
#include <stm32f0xx_gpio.h>
|
||||
#include <stm32f0xx_flash.h>
|
||||
#include <stm32f0xx_dbgmcu.h>
|
||||
#include <platform/stm32.h>
|
||||
#include <target/gpioconfig.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user