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

Akshai M (Augustus Diode) notifications at github.com
Mon Jun 28 18:18:14 CEST 2021


@akshaim 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

Interesting :)

-- 
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_r659930540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/191d9033/attachment.htm>


More information about the notifications mailing list