• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Révision15048 (tree)
l'heure2021-11-10 20:25:06
Auteurvrepetenko

Message de Log

STM32WL: updated to new SPI driver version.

Change Summary

Modification

--- trunk/os/hal/ports/STM32/STM32WLxx/hal_lld.h (revision 15047)
+++ trunk/os/hal/ports/STM32/STM32WLxx/hal_lld.h (revision 15048)
@@ -42,6 +42,11 @@
4242 /*===========================================================================*/
4343
4444 /**
45+ * @brief Requires use of SPIv2 driver model.
46+ */
47+#define HAL_LLD_SELECT_SPI_V2 TRUE
48+
49+/**
4550 * @name Platform identification
4651 * @{
4752 */
--- trunk/testhal/STM32/STM32WLxx/SPI/main.c (revision 15047)
+++ trunk/testhal/STM32/STM32WLxx/SPI/main.c (revision 15048)
@@ -31,12 +31,12 @@
3131 * SPI3(SUBGHZSPI) configuration (12MHz, CPHA=0, CPOL=0, MSb first).
3232 */
3333 static const SPIConfig spicfg = {
34- false,
35- NULL,
36- NULL,
37- 0,
38- SPI_CR1_BR_0,
39- 0
34+ .circular = false,
35+ .slave = false,
36+ .data_cb = NULL,
37+ .error_cb = NULL,
38+ .cr1 = (SPI_CR1_BR_0),
39+ .cr2 = (0U)
4040 };
4141
4242 void radioReset(void) {
Afficher sur ancien navigateur de dépôt.