diff options
Diffstat (limited to 'code/esp32/components/eos')
-rw-r--r-- | code/esp32/components/eos/fe310.c | 6 | ||||
-rwxr-xr-x | code/esp32/components/eos/transport.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/code/esp32/components/eos/fe310.c b/code/esp32/components/eos/fe310.c index 6dceb51..a3552f9 100644 --- a/code/esp32/components/eos/fe310.c +++ b/code/esp32/components/eos/fe310.c @@ -23,8 +23,8 @@ static EOSMsgQ send_q; static EOSMsgItem send_q_array[EOS_FE310_SIZE_Q]; -#define SPI_GPIO_RTS 4 -#define SPI_GPIO_CTS 2 +#define SPI_GPIO_RTS 16 +#define SPI_GPIO_CTS 17 #define SPI_GPIO_MOSI 23 #define SPI_GPIO_MISO 19 #define SPI_GPIO_SCLK 18 @@ -92,7 +92,7 @@ static void worker(void *pvParameters) { xSemaphoreTake(mutex, portMAX_DELAY); } else { - ESP_LOGI(TAG, "FE310 RECV NULL"); + // ESP_LOGI(TAG, "FE310 RECV NULL"); } // vTaskDelay(5000 / portTICK_PERIOD_MS); } diff --git a/code/esp32/components/eos/transport.c b/code/esp32/components/eos/transport.c index 162fe86..9a9309c 100755 --- a/code/esp32/components/eos/transport.c +++ b/code/esp32/components/eos/transport.c @@ -60,7 +60,7 @@ static int t_open(void) { memset((char *)&_myaddr, 0, sizeof(_myaddr)); _myaddr.sin_family = AF_INET; _myaddr.sin_addr.s_addr = htonl(INADDR_ANY); - _myaddr.sin_port = htons(0); + _myaddr.sin_port = htons(3000); int rv = bind(udp_sock, (struct sockaddr *)&_myaddr, sizeof(_myaddr)); if (rv < 0) { |