git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14507 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-06-06 18:38:01 +00:00
parent 713e9fcc6c
commit 85d6dd3806
2 changed files with 5 additions and 4 deletions

View File

@ -234,11 +234,7 @@ void spi_lld_init(void) {
#if STM32_SPI_USE_SPI3
spiObjectInit(&SPID3);
#if !defined(SUBGHZSPI)
SPID3.spi = SPI3;
#else
SPID3.spi = SUBGHZSPI;
#endif
SPID3.dmarx = NULL;
SPID3.dmatx = NULL;
SPID3.rxdmamode = STM32_DMA_CR_CHSEL(SPI3_RX_DMA_STREAM) |

View File

@ -336,6 +336,11 @@
#define STM32_LSCOSEL_LSE (3 << 24) /**< LSE on LSCO pin. */
/** @} */
/**
* @brief Mapping SUBGHZSPI on SPI3.
*/
#define SPI3 SUBGHZSPI
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/