From 97a7e6617f8ad06b7bff495603200b853766ecc8 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 17 Jan 2018 07:45:32 +0100 Subject: basic test for eos & fe310 passed --- code/esp32/components/eos/fe310.c | 6 +++--- code/esp32/components/eos/transport.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'code/esp32/components') 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) { -- cgit v1.2.3