Call cyw43_deinit() from cyw43_arch_deinit() to release the DMA channels and power off the WLAN chip (#965)

This commit is contained in:
Attila Wagner 2022-08-10 13:55:54 +01:00 committed by GitHub
parent 2dfaa1ab4c
commit a33a11ea16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ void cyw43_arch_deinit(void) {
} }
gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false); 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); gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler);
cyw43_deinit(&cyw43_state);
} }
void cyw43_post_poll_hook(void) { void cyw43_post_poll_hook(void) {

View File

@ -211,6 +211,7 @@ void cyw43_arch_deinit(void) {
gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false); 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); gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler);
low_prio_irq_deinit(); low_prio_irq_deinit();
cyw43_deinit(&cyw43_state);
} }
void cyw43_post_poll_hook(void) { void cyw43_post_poll_hook(void) {