This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-14
lines changed Expand file tree Collapse file tree 4 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 448
448
#endif
449
449
450
450
#elif ( defined(ARDUINO_ARCH_RP2040 ) || defined(ARDUINO_RASPBERRY_PI_PICO ) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040 ) || \
451
- defined(ARDUINO_GENERIC_RP2040 ) )
451
+ defined(ARDUINO_GENERIC_RP2040 ) || defined( ARDUINO_ARDUINO_NANO_RP2040_CONNECT ) )
452
452
453
- #warning You have to modify pin usage according to actual connection for RP2040
454
-
455
- //NINA
456
- #define NINA_GPIO0 (20u)
457
- #define NINA_RESETN (24u)
458
- #define NINA_ACK (27u)
453
+ #if defined(ARDUINO_ARDUINO_NANO_RP2040_CONNECT )
454
+ #warning Using Nano_RP2040_Connect with arduino-pico core
455
+
456
+ //NINA
457
+ #define NINA_GPIO0 (20u)
458
+ #define NINA_RESETN (24u)
459
+ #define NINA_ACK (27u)
459
460
460
- #define SPIWIFI_SS (26u)
461
- #define SPIWIFI_ACK (27u)
462
- #define SPIWIFI_RESET (NINA_RESETN)
461
+ #define SPIWIFI_SS (26u)
462
+ #define SPIWIFI_ACK (27u)
463
+ #define SPIWIFI_RESET (NINA_RESETN)
464
+
465
+ #else
466
+ #warning You have to modify pin usage according to actual connection for RP2040
467
+
468
+ //NINA
469
+ #define NINA_GPIO0 (20u)
470
+ #define NINA_RESETN (24u)
471
+ #define NINA_ACK (27u)
472
+
473
+ #define SPIWIFI_SS (26u)
474
+ #define SPIWIFI_ACK (27u)
475
+ #define SPIWIFI_RESET (NINA_RESETN)
476
+ #endif
463
477
464
478
#elif defined(__AVR_ATmega1280__ ) || defined(__AVR_ATmega1281__ ) || \
465
479
defined(__AVR_ATmega640__ ) || defined(__AVR_ATmega641__ ) || defined(__AVR_ATmega644__ ) || defined(__AVR_ATmega644A__ ) || \
Original file line number Diff line number Diff line change 56
56
#ifdef KH_WIFININA_UDP_DEBUG
57
57
#undef KH_WIFININA_UDP_DEBUG
58
58
#endif
59
- #define KH_WIFININA_UDP_DEBUG 1
59
+ #define KH_WIFININA_UDP_DEBUG 0
60
60
61
61
extern " C"
62
62
{
Original file line number Diff line number Diff line change 53
53
54
54
#define _DEBUG_
55
55
56
- #define KH_WIFININA_SERVER_DRV_DEBUG 1
56
+ #define KH_WIFININA_SERVER_DRV_DEBUG 0
57
57
58
58
#include " server_drv.h"
59
59
60
60
#include " Arduino.h"
61
61
#include " spi_drv.h"
62
-
62
+
63
63
// From v1.5.1, For nRF52x
64
64
#include " wl_types.h"
65
65
#include " debug.h"
Original file line number Diff line number Diff line change 63
63
#if defined(KH_WIFININA_SPI_DEBUG)
64
64
#undef KH_WIFININA_SPI_DEBUG
65
65
#endif
66
- #define KH_WIFININA_SPI_DEBUG 1
66
+ #define KH_WIFININA_SPI_DEBUG 0
67
67
68
68
#ifdef ARDUINO_SAMD_MKRVIDOR4000
69
69
You can’t perform that action at this time.
0 commit comments