1- /*!
2- * @file Wippersnapper_Networking.h
3- *
4- * This file includes network interfaces at compile-time.
5- *
6- * Adafruit invests time and resources providing this open source code,
7- * please support Adafruit and open-source hardware by purchasing
8- * products from Adafruit!
9- *
10- * Copyright (c) Brent Rubell 2020-2021 for Adafruit Industries.
11- *
12- * BSD license, all text here must be included in any redistribution.
13- *
14- */
15-
16- #ifndef WIPPERSNAPPER_NETWORKING_H
17- #define WIPPERSNAPPER_NETWORKING_H
18-
19- #ifndef WL_MAC_ADDR_LENGTH
20- #define WL_MAC_ADDR_LENGTH 6 ///< MAC address length - from RP2040 BSP
21- #endif
22- #define WS_MAX_ALT_WIFI_NETWORKS 3 ///< Maximum number of alternative networks
23-
24- #if defined(ADAFRUIT_METRO_M4_EXPRESS ) || \
25- defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE ) || defined(ADAFRUIT_PYPORTAL ) || \
26- defined(ADAFRUIT_PYPORTAL_M4_TITANO ) || defined(USE_AIRLIFT ) || \
27- defined(ADAFRUIT_FRUITJAM_RP2350 )
28- #include "network_interfaces/Wippersnapper_AIRLIFT.h"
29- /** Nina-FW (adafruit fork) networking class */
30- typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi ;
31- #elif defined(ARDUINO_ARCH_ESP8266 )
32- #include "network_interfaces/Wippersnapper_ESP8266.h"
33- /** ESP8266's networking class */
34- typedef Wippersnapper_ESP8266 Wippersnapper_WiFi ;
35- #elif defined(ARDUINO_ARCH_ESP32 )
36- #include "network_interfaces/Wippersnapper_ESP32.h"
37- /** ESP32's networking class */
38- typedef Wippersnapper_ESP32 Wippersnapper_WiFi ;
39- #elif defined(ARDUINO_ARCH_RP2040 )
40- #include "network_interfaces/ws_networking_pico.h"
41- typedef ws_networking_pico Wippersnapper_WiFi ;
42- #else
43- #warning "Must define network interface in config.h!"
44- #endif
45-
1+ /*!
2+ * @file Wippersnapper_Networking.h
3+ *
4+ * This file includes network interfaces at compile-time.
5+ *
6+ * Adafruit invests time and resources providing this open source code,
7+ * please support Adafruit and open-source hardware by purchasing
8+ * products from Adafruit!
9+ *
10+ * Copyright (c) Brent Rubell 2020-2021 for Adafruit Industries.
11+ *
12+ * BSD license, all text here must be included in any redistribution.
13+ *
14+ */
15+
16+ #ifndef WIPPERSNAPPER_NETWORKING_H
17+ #define WIPPERSNAPPER_NETWORKING_H
18+
19+ #ifndef WL_MAC_ADDR_LENGTH
20+ #define WL_MAC_ADDR_LENGTH 6 ///< MAC address length - from RP2040 BSP
21+ #endif
22+ #define WS_MAX_ALT_WIFI_NETWORKS 3 ///< Maximum number of alternative networks
23+
24+ #if defined(ADAFRUIT_METRO_M4_EXPRESS ) || \
25+ defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE ) || defined(ADAFRUIT_PYPORTAL ) || \
26+ defined(ADAFRUIT_PYPORTAL_M4_TITANO ) || defined(USE_AIRLIFT ) || \
27+ defined(ARDUINO_ADAFRUIT_FRUITJAM_RP2350 )
28+ #include "network_interfaces/Wippersnapper_AIRLIFT.h"
29+ /** Nina-FW (adafruit fork) networking class */
30+ typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi ;
31+ #elif defined(ARDUINO_ARCH_ESP8266 )
32+ #include "network_interfaces/Wippersnapper_ESP8266.h"
33+ /** ESP8266's networking class */
34+ typedef Wippersnapper_ESP8266 Wippersnapper_WiFi ;
35+ #elif defined(ARDUINO_ARCH_ESP32 )
36+ #include "network_interfaces/Wippersnapper_ESP32.h"
37+ /** ESP32's networking class */
38+ typedef Wippersnapper_ESP32 Wippersnapper_WiFi ;
39+ #elif defined(ARDUINO_ARCH_RP2040 )
40+ #include "network_interfaces/ws_networking_pico.h"
41+ typedef ws_networking_pico Wippersnapper_WiFi ;
42+ #else
43+ #warning "Must define network interface in config.h!"
44+ #endif
45+
4646#endif // WIPPERSNAPPER_NETWORKING_H
0 commit comments