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
@@ -57,7 +57,7 @@ void hwspecific_spi_init(void) {
|
||||
hal_gpio_write(SPI_CHIP_EN, 1);
|
||||
}
|
||||
|
||||
static const struct mg_tcpip_spi spi = {NULL, hwspecific_spi_begin, hwspecific_spi_end, hwspecific_spi_txn};
|
||||
static const struct mg_spi spi = {NULL, hwspecific_spi_begin, hwspecific_spi_end, hwspecific_spi_txn};
|
||||
|
||||
void wifi_setconfig(void *data) {
|
||||
struct mg_tcpip_driver_st67w6_data *d = (struct mg_tcpip_driver_st67w6_data *) data;
|
||||
@@ -71,6 +71,6 @@ void wifi_setconfig(void *data) {
|
||||
d->wifi.apsecurity = 0;
|
||||
d->wifi.apchannel = 10;
|
||||
d->wifi.apmode = ENABLE_WIFI_AP;
|
||||
d->spi = (struct mg_tcpip_spi *) &spi;
|
||||
d->spi = (struct mg_spi *) &spi;
|
||||
d->is_ready = hwspecific_is_ready;
|
||||
}
|
||||
Reference in new issue
Block a user