[riot-notifications] [RIOT-OS/RIOT] drivers/sx126x: Add support for Nucleo -WL55JC (#16579)

Francisco notifications at github.com
Mon Jun 28 13:15:04 CEST 2021


@fjmolinas commented on this pull request.



> +#if defined(CPU_FAM_STM32WL)
+    sx126x_radio_waittillready();
+
+    spi_acquire(dev->params->spi, SPI_CS_UNDEF, SX126X_SPI_MODE, SX126X_SPI_SPEED);
+    /* Pull NSS low */
+    PWR->SUBGHZSPICR &= ~PWR_SUBGHZSPICR_NSS;
+    spi_transfer_bytes(dev->params->spi, SPI_CS_UNDEF, true, command, NULL, command_length);
+    spi_transfer_bytes(dev->params->spi, SPI_CS_UNDEF, false, NULL, data, data_length);
+    /* Pull NSS high */
+    PWR->SUBGHZSPICR |= PWR_SUBGHZSPICR_NSS;
+#else

Yes, e.g: an llcc68 on a stm32wl board

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16579#discussion_r659695508
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/8c13149a/attachment.htm>


More information about the notifications mailing list