<p></p>
<p><b>@fjmolinas</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16579#discussion_r665367682">pkg/driver_sx126x/contrib/driver_sx126x_hal.c</a>:</p>
<pre style='color:#555'>>      sx126x_t *dev = (sx126x_t *)context;
 
-    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);
+    if (sx126x_is_stm32wl(dev)) {
+#if IS_USED(MODULE_SX126X_STM32WL)
+        /* Reset Radio */
+        RCC->CSR |= RCC_CSR_RFRST;
+        /* Clear radio reset */
+        RCC->CSR &= ~RCC_CSR_RFRST;
+        ztimer_sleep(ZTIMER_USEC, 100);
+        /* Wait while reset is done */
+        while((RCC->CSR & RCC_CSR_RFRSTF) != 0UL) {}
</pre>
<p>Can you uncristify?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16579#pullrequestreview-701002134">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCXGLB6QPCYLWMFR7DTWRIS7ANCNFSM47EMOXQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYHOR6O6AZFHBIZRFTLTWRIS7A5CNFSM47EMOXQ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFHEHDFQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16579#pullrequestreview-701002134",
"url": "https://github.com/RIOT-OS/RIOT/pull/16579#pullrequestreview-701002134",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>