Skip to content

Commit cb50748

Browse files
icsys-aalkartben
authored andcommitted
drivers: wifi: winc1500: Fix wifi module so that it is not held in reset.
The "nm_bsp_reset" is used to apply a hard reset to the WINC board by setting CHIP_EN and RESET_N signals low,then after specific delay the function will put CHIP_EN high then RESET_N high. reset-gpio is however defined as active low , causing this function to hold the wifi module in reset. Signed-off-by: Andreas Ålgård <[email protected]>
1 parent d78952b commit cb50748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/wifi/winc1500/wifi_winc1500_nm_bsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ int8_t nm_bsp_deinit(void)
5252
void nm_bsp_reset(void)
5353
{
5454
gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 0);
55-
gpio_pin_set_dt(&winc1500_config.reset_gpio, 0);
55+
gpio_pin_set_dt(&winc1500_config.reset_gpio, 1);
5656
nm_bsp_sleep(100);
5757

5858
gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 1);
5959
nm_bsp_sleep(10);
6060

61-
gpio_pin_set_dt(&winc1500_config.reset_gpio, 1);
61+
gpio_pin_set_dt(&winc1500_config.reset_gpio, 0);
6262
nm_bsp_sleep(10);
6363
}
6464

0 commit comments

Comments
 (0)