From 285ddd410a559449b7e2cbab9b2b10e850efbd08 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 7 Jan 2026 22:13:36 +0100 Subject: added APP <-> FE310 bridge SPI messages; enabled esp32 wake from deep sleep; IP tunnel for app module supports NAT and port forwadring; introduced EOSMessage struct for SPI messages; --- fw/esp32/components/eos/include/net_priv.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'fw/esp32/components/eos/include/net_priv.h') diff --git a/fw/esp32/components/eos/include/net_priv.h b/fw/esp32/components/eos/include/net_priv.h index fa1de61..5627e12 100644 --- a/fw/esp32/components/eos/include/net_priv.h +++ b/fw/esp32/components/eos/include/net_priv.h @@ -5,29 +5,26 @@ typedef struct NETConfig { int sleep; int sleep_req; int present; - int gpio_mosi; - int gpio_miso; - int gpio_sclk; - int gpio_cs; int gpio_rts; int gpio_cts; uint32_t dev; spi_host_device_t spi_host; spi_bus_config_t *spi_bus_cfg; spi_slave_interface_config_t *spi_iface_cfg; - spi_slave_transaction_t *spi_tr_cfg; TaskHandle_t xchg_task_handle; SemaphoreHandle_t mutex; SemaphoreHandle_t bufq_mutex; SemaphoreHandle_t bufq_semaph; EOSBufQ *buf_q; EOSMsgQ *send_q; - eos_net_handler_t msg_handler; + eos_net_handler_t handler; } NETConfig; void _eos_net_init_gpio(NETConfig *config); -unsigned char *_eos_net_alloc(NETConfig *config); -void _eos_net_free(NETConfig *config, unsigned char *buf); -int _eos_net_send(NETConfig *config, unsigned char mtype, unsigned char *buffer, uint16_t buf_len); +void _eos_net_alloc(NETConfig *config, EOSMessage *msg); +void _eos_net_free(NETConfig *config, EOSMessage *msg); +int _eos_net_send(NETConfig *config, unsigned char mtype, EOSMessage *msg, uint16_t len); void _eos_net_sleep_req(NETConfig *config); void _eos_net_wake(NETConfig *config); +void _eos_net_deep_sleep(NETConfig *config); +void _eos_net_deep_wake(NETConfig *config); -- cgit v1.2.3