diff options
| author | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 | 
|---|---|---|
| committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 | 
| commit | 97a7e6617f8ad06b7bff495603200b853766ecc8 (patch) | |
| tree | 9e8a4aaa5b3ef366c595595871db43eae2facdc2 /code/esp32 | |
| parent | 01c3e3af2394f863323b846fa304ff7e0a30e9df (diff) | |
basic test for eos & fe310 passed
Diffstat (limited to 'code/esp32')
| -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) {  | 
