[bsp][stm32][stm32f767] 修改一系列错误
This commit is contained in:
parent
757232cdb6
commit
819c7d8929
|
@ -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, \
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue