summaryrefslogtreecommitdiff
path: root/code/esp32/components
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-17 07:45:32 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-17 07:45:32 +0100
commit97a7e6617f8ad06b7bff495603200b853766ecc8 (patch)
tree9e8a4aaa5b3ef366c595595871db43eae2facdc2 /code/esp32/components
parent01c3e3af2394f863323b846fa304ff7e0a30e9df (diff)
basic test for eos & fe310 passed
Diffstat (limited to 'code/esp32/components')
-rw-r--r--code/esp32/components/eos/fe310.c6
-rwxr-xr-xcode/esp32/components/eos/transport.c2
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) {