[Bsp] stm32f107 delete c99 mode code

This commit is contained in:
tanek liang 2017-08-05 21:13:37 +08:00
parent 370be08376
commit 8e09d58e7e
1 changed files with 2 additions and 1 deletions

View File

@ -419,8 +419,9 @@ rt_err_t stm32_spi_register(SPI_TypeDef * SPI,
{ {
rt_err_t res = RT_EOK; rt_err_t res = RT_EOK;
NVIC_InitTypeDef NVIC_InitStructure; NVIC_InitTypeDef NVIC_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);
rt_uint32_t flags = 0; rt_uint32_t flags = 0;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);
if(SPI == SPI1) if(SPI == SPI1)
{ {
stm32_spi->SPI = SPI1; stm32_spi->SPI = SPI1;