Skip to content

Commit 5668a96

Browse files
committed
drivers/atwinc15x0: allow compilation for ESPs
1 parent 40d299b commit 5668a96

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

drivers/atwinc15x0/Makefile.dep

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,3 @@ USEPKG += driver_atwinc15x0
1717
FEATURES_REQUIRED += periph_gpio
1818
FEATURES_REQUIRED += periph_gpio_irq
1919
FEATURES_REQUIRED += periph_spi
20-
21-
# esp8266 and esp32 vendor code and atwinc15x0 both define conflicting
22-
# spi_flash_{read, write} functions.
23-
# esp8266 and esp32 already have build-in WiFi, so it's unlikely to ever
24-
# use this driver - just blacklist the architecture.
25-
FEATURES_BLACKLIST += arch_esp8266
26-
FEATURES_BLACKLIST += arch_esp32

drivers/atwinc15x0/atwinc15x0_bus.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ sint8 nm_bus_init(void *arg)
4040
assert(atwinc15x0);
4141
assert(gpio_is_valid(atwinc15x0->params.ssn_pin));
4242

43+
#if !defined(CPU_ESP32) && !defined(CPU_ESP8266)
4344
gpio_init(atwinc15x0->params.ssn_pin, GPIO_OUT);
4445
gpio_set(atwinc15x0->params.ssn_pin);
46+
#endif
4547

4648
nm_bsp_reset();
4749
nm_bsp_sleep(1);

0 commit comments

Comments
 (0)