[bsp][stm32][stm32f767] 修改一系列错误

This commit is contained in:
Hao Zhu 2018-12-12 09:00:48 +08:00
parent 757232cdb6
commit 819c7d8929
4 changed files with 4 additions and 6 deletions

View File

@ -37,8 +37,8 @@
{ \ { \
.Instance = SPI2, \ .Instance = SPI2, \
.bus_name = "spi2", \ .bus_name = "spi2", \
.dma_rx.dma_rx.dma_rcc = RCC_AHB1ENR_DMA1EN, \ .dma_rx.dma_rcc = RCC_AHB1ENR_DMA1EN, \
.dma_tx.dma_rx.dma_rcc = RCC_AHB1ENR_DMA1EN, \ .dma_tx.dma_rcc = RCC_AHB1ENR_DMA1EN, \
.dma_rx.Instance = DMA1_Stream3, \ .dma_rx.Instance = DMA1_Stream3, \
.dma_rx.channel = DMA_CHANNEL_0, \ .dma_rx.channel = DMA_CHANNEL_0, \
.dma_rx.dma_irq = DMA1_Stream3_IRQn, \ .dma_rx.dma_irq = DMA1_Stream3_IRQn, \

View File

@ -9,9 +9,9 @@
*/ */
#include "board.h" #include "board.h"
#define RT_USING_SPI
#ifdef RT_USING_SPI #ifdef RT_USING_SPI
#define BSP_USING_SPI1
#if defined(BSP_USING_SPI1) || defined(BSP_USING_SPI2) || defined(BSP_USING_SPI3) || defined(BSP_USING_SPI4) || defined(BSP_USING_SPI5) || defined(BSP_USING_SPI6) #if defined(BSP_USING_SPI1) || defined(BSP_USING_SPI2) || defined(BSP_USING_SPI3) || defined(BSP_USING_SPI4) || defined(BSP_USING_SPI5) || defined(BSP_USING_SPI6)
/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */

View File

@ -79,7 +79,6 @@ void MX_GPIO_Init(void)
int board_pin_init(void) int board_pin_init(void)
{ {
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT); rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
// rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
return 0; return 0;
} }

View File

@ -78,7 +78,6 @@
#define RT_USING_DEVICE_IPC #define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512 #define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL #define RT_USING_SERIAL
#define RT_SERIAL_USING_DMA
#define RT_USING_PIN #define RT_USING_PIN
/* Using WiFi */ /* Using WiFi */