File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 37
37
#define SPI_MODE2 0x03
38
38
#define SPI_MODE3 0x01
39
39
40
- #if defined(ARDUINO_ARCH_SAMD )
40
+ #if defined(__SAMD51__ )
41
41
// The datasheet specifies a typical SPI SCK period (tSCK) of 42 ns,
42
42
// see "Table 36-48. SPI Timing Characteristics and Requirements",
43
43
// which translates into a maximum SPI clock of 23.8 MHz.
44
44
// Conservatively, the divider is set for a 12 MHz maximum SPI clock.
45
+ #define SPI_MIN_CLOCK_DIVIDER (uint8_t )(1 + ((F_CPU - 1 ) / 24000000 ))
46
+ #else
45
47
#define SPI_MIN_CLOCK_DIVIDER (uint8_t )(1 + ((F_CPU - 1 ) / 12000000 ))
46
48
#endif
47
49
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ static const uint8_t ATN = PIN_ATN;
131
131
#define SPIWIFI_SS 8
132
132
#define SPIWIFI_ACK 5
133
133
#define SPIWIFI_RESET 7
134
+ #define SerialESP32 Serial1
134
135
135
136
/*
136
137
* Serial interfaces
You can’t perform that action at this time.
0 commit comments