mirror of https://github.com/rusefi/ChibiOS.git
STM32WL: updated to new SPI driver version.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15048 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
1bf0f58525
commit
29760bc1ea
|
@ -41,6 +41,11 @@
|
||||||
/* Driver constants. */
|
/* Driver constants. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Requires use of SPIv2 driver model.
|
||||||
|
*/
|
||||||
|
#define HAL_LLD_SELECT_SPI_V2 TRUE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Platform identification
|
* @name Platform identification
|
||||||
* @{
|
* @{
|
||||||
|
|
|
@ -35,7 +35,7 @@ include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RCCv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RCCv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv3/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv3/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver_v2.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SYSTICKv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SYSTICKv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
||||||
|
|
|
@ -35,7 +35,7 @@ include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RCCv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RCCv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv3/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv3/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver_v2.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SYSTICKv2/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SYSTICKv2/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
||||||
|
|
|
@ -31,12 +31,12 @@
|
||||||
* SPI3(SUBGHZSPI) configuration (12MHz, CPHA=0, CPOL=0, MSb first).
|
* SPI3(SUBGHZSPI) configuration (12MHz, CPHA=0, CPOL=0, MSb first).
|
||||||
*/
|
*/
|
||||||
static const SPIConfig spicfg = {
|
static const SPIConfig spicfg = {
|
||||||
false,
|
.circular = false,
|
||||||
NULL,
|
.slave = false,
|
||||||
NULL,
|
.data_cb = NULL,
|
||||||
0,
|
.error_cb = NULL,
|
||||||
SPI_CR1_BR_0,
|
.cr1 = (SPI_CR1_BR_0),
|
||||||
0
|
.cr2 = (0U)
|
||||||
};
|
};
|
||||||
|
|
||||||
void radioReset(void) {
|
void radioReset(void) {
|
||||||
|
|
Loading…
Reference in New Issue