mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Rename mg_tcpip_spi to mg_spi and move it to flash.h
This commit is contained in:
1 parent
1d8c55c892
commit
e7bfbf99fa
23 files changed
+104
-106
No files matched your search
@@ -9,7 +9,7 @@
|
||||
|
||||
struct mg_connection *mqtt_connection;
|
||||
// SPI bus used by the W5500 driver, see MG_TCPIP_DRIVER_W5500_INIT
|
||||
struct mg_tcpip_spi mg_spi = {
|
||||
struct mg_spi mg_spi = {
|
||||
NULL, // SPI metadata
|
||||
[](void *) { digitalWrite(SS_PIN, LOW); SPI.beginTransaction(SPISettings()); },
|
||||
[](void *) { digitalWrite(SS_PIN, HIGH); SPI.endTransaction(); },
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define SS_PIN 17 // Slave select pin for the W5500 module
|
||||
|
||||
// SPI bus used by the W5500 driver, see MG_TCPIP_DRIVER_W5500_INIT
|
||||
struct mg_tcpip_spi mg_spi = {
|
||||
struct mg_spi mg_spi = {
|
||||
NULL, // SPI metadata
|
||||
[](void *) { digitalWrite(SS_PIN, LOW); SPI.beginTransaction(SPISettings()); },
|
||||
[](void *) { digitalWrite(SS_PIN, HIGH); SPI.endTransaction(); },
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
struct mg_connection *mqtt_connection;
|
||||
// SPI bus used by the W5500 driver, see MG_TCPIP_DRIVER_W5500_INIT
|
||||
struct mg_tcpip_spi mg_spi = {
|
||||
struct mg_spi mg_spi = {
|
||||
NULL, // SPI metadata
|
||||
[](void *) { digitalWrite(SS_PIN, LOW); SPI.beginTransaction(SPISettings()); },
|
||||
[](void *) { digitalWrite(SS_PIN, HIGH); SPI.endTransaction(); },
|
||||
|
||||
Reference in new issue
Block a user