mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-03 21:48: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
@@ -165,7 +165,7 @@ void hwspecific_spi_end(void *arg) {
|
||||
(void) arg;
|
||||
}
|
||||
|
||||
static const struct mg_tcpip_spi spi = {NULL, hwspecific_spi_begin,
|
||||
static const struct mg_spi spi = {NULL, hwspecific_spi_begin,
|
||||
hwspecific_spi_end, hwspecific_spi_txn};
|
||||
|
||||
#ifndef CYW43_RESOURCE_ATTRIBUTE
|
||||
@@ -274,7 +274,7 @@ static void mif_fn(struct mg_tcpip_if *ifp, int ev, void *ev_data) {
|
||||
|
||||
static struct mg_tcpip_driver_cyw_data d = {
|
||||
{WIFI_SSID, WIFI_PASS, "mongoose", "mongoose", 0, 0, 0, 0, 10, true},
|
||||
(struct mg_tcpip_spi *) &spi,
|
||||
(struct mg_spi *) &spi,
|
||||
(struct mg_tcpip_driver_cyw_firmware *) &fw,
|
||||
false,
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@ static void spi_txn(void *spi, uint8_t *tx, uint8_t *rx, size_t len) {
|
||||
}
|
||||
|
||||
// SPI bus used by the W5500 driver, see MG_TCPIP_DRIVER_W5500_INIT
|
||||
struct mg_tcpip_spi mg_spi = {NULL, spi_begin, spi_end, spi_txn};
|
||||
struct mg_spi mg_spi = {NULL, spi_begin, spi_end, spi_txn};
|
||||
|
||||
static void ethernet_init(void) {
|
||||
// Init SPI pins
|
||||
|
||||
@@ -151,7 +151,7 @@ static void spi_txn(void *arg, uint8_t *txdata, uint8_t *rxdata, size_t len) {
|
||||
}
|
||||
|
||||
// SPI bus used by the W5500 driver, see MG_TCPIP_DRIVER_W5500_INIT
|
||||
struct mg_tcpip_spi mg_spi = {NULL, spi_begin, spi_end, spi_txn};
|
||||
struct mg_spi mg_spi = {NULL, spi_begin, spi_end, spi_txn};
|
||||
|
||||
|
||||
static void blink_task(void) {
|
||||
|
||||
Reference in new issue
Block a user