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

Akshai M (Augustus Diode) notifications at github.com
Tue Jun 29 12:10:47 CEST 2021


@jia200x @fjmolinas @leandrolanzieri  Does it make sense to use the SPI address ?

```
sx126x_hal_status_t sx126x_hal_reset(const void *context)
{
   DEBUG("[sx126x_hal] reset\n");

   sx126x_t *dev = (sx126x_t *)context;

   if (dev->params->spi == (SPI_DEV(0) ) { // assuming SPI_DEV(0) is hardcoded to use `SUBGHZSPI`
        sx126x_periph_hal_reset(dev);
   }
   else {
       gpio_set(dev->params->reset_pin);
       gpio_clear(dev->params->reset_pin);
       /* it takes 100us for the radio to be ready after reset */
       ztimer_sleep(ZTIMER_USEC, 100);
       gpio_set(dev->params->reset_pin);
   }
   return 0;
}
```

-- 
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#issuecomment-870462955
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210629/054b1ab6/attachment.htm>


More information about the notifications mailing list