Call cyw43_deinit()
from cyw43_arch_deinit()
to release the DMA channels and power off the WLAN chip (#965)
This commit is contained in:
parent
2dfaa1ab4c
commit
a33a11ea16
@ -168,6 +168,7 @@ void cyw43_arch_deinit(void) {
|
||||
}
|
||||
gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false);
|
||||
gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler);
|
||||
cyw43_deinit(&cyw43_state);
|
||||
}
|
||||
|
||||
void cyw43_post_poll_hook(void) {
|
||||
|
@ -211,6 +211,7 @@ void cyw43_arch_deinit(void) {
|
||||
gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false);
|
||||
gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler);
|
||||
low_prio_irq_deinit();
|
||||
cyw43_deinit(&cyw43_state);
|
||||
}
|
||||
|
||||
void cyw43_post_poll_hook(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user