mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
Pico uart pin configure (#14473)
* Add empty uartPinConfigure() implementation for RP2350 * Fix tabs
This commit is contained in:
parent
190abede9e
commit
e63dfb9a9a
4 changed files with 12 additions and 7 deletions
|
@ -195,19 +195,19 @@ Configure how the SPI serialises and deserialises data on the wire
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|
||||||
spi
|
spi
|
||||||
SPI instance specifier, either spi0 or spi1
|
SPI instance specifier, either spi0 or spi1
|
||||||
|
|
||||||
data_bits
|
data_bits
|
||||||
Number of data bits per transfer. Valid values 4..16.
|
Number of data bits per transfer. Valid values 4..16.
|
||||||
|
|
||||||
cpol
|
cpol
|
||||||
SSPCLKOUT polarity, applicable to Motorola SPI frame format only.
|
SSPCLKOUT polarity, applicable to Motorola SPI frame format only.
|
||||||
|
|
||||||
cpha
|
cpha
|
||||||
SSPCLKOUT phase, applicable to Motorola SPI frame format only
|
SSPCLKOUT phase, applicable to Motorola SPI frame format only
|
||||||
|
|
||||||
order
|
order
|
||||||
Must be SPI_MSB_FIRST, no other values supported on the PL022
|
Must be SPI_MSB_FIRST, no other values supported on the PL022
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -390,7 +390,6 @@ MCU_COMMON_SRC = \
|
||||||
drivers/bus_spi_config.c \
|
drivers/bus_spi_config.c \
|
||||||
drivers/bus_i2c_utils.c \
|
drivers/bus_i2c_utils.c \
|
||||||
drivers/serial_pinconfig.c \
|
drivers/serial_pinconfig.c \
|
||||||
drivers/serial_uart_pinconfig.c \
|
|
||||||
drivers/usb_io.c \
|
drivers/usb_io.c \
|
||||||
drivers/dshot.c \
|
drivers/dshot.c \
|
||||||
PICO/bus_i2c_pico.c \
|
PICO/bus_i2c_pico.c \
|
||||||
|
|
|
@ -337,4 +337,10 @@ void uartReconfigure(uartPort_t *s)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void uartPinConfigure(const serialPinConfig_t *pSerialPinConfig)
|
||||||
|
{
|
||||||
|
UNUSED(pSerialPinConfig);
|
||||||
|
|
||||||
|
// Nothing to do currently for PICO
|
||||||
|
}
|
||||||
#endif /* USE_UART */
|
#endif /* USE_UART */
|
||||||
|
|
|
@ -106,7 +106,7 @@ ifeq ($(TARGET_MCU),STM32F765xx)
|
||||||
DEVICE_FLAGS += -DSTM32F765xx
|
DEVICE_FLAGS += -DSTM32F765xx
|
||||||
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f765.ld
|
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f765.ld
|
||||||
STARTUP_SRC = STM32/startup/startup_stm32f765xx.s
|
STARTUP_SRC = STM32/startup/startup_stm32f765xx.s
|
||||||
MCU_FLASH_SIZE := 2048
|
MCU_FLASH_SIZE := 2048
|
||||||
else ifeq ($(TARGET_MCU),STM32F745xx)
|
else ifeq ($(TARGET_MCU),STM32F745xx)
|
||||||
DEVICE_FLAGS += -DSTM32F745xx
|
DEVICE_FLAGS += -DSTM32F745xx
|
||||||
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f74x.ld
|
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f74x.ld
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue