summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/transport.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-22 15:31:04 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-22 15:31:04 +0100
commit7e209672e005b911166f27b691acfc6c988e93fb (patch)
treef3200c9f282a9e4f9c08e7e6615fdd543ec2307b /code/esp32/components/eos/transport.c
parentaee07a08bfdfd32a777a8cdd1f5f84fe56783461 (diff)
fixed esp32 driver: moved xSemaphoreTake from ISR
Diffstat (limited to 'code/esp32/components/eos/transport.c')
-rwxr-xr-xcode/esp32/components/eos/transport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/esp32/components/eos/transport.c b/code/esp32/components/eos/transport.c
index 597be61..e0a913a 100755
--- a/code/esp32/components/eos/transport.c
+++ b/code/esp32/components/eos/transport.c
@@ -158,7 +158,8 @@ static esp_err_t esp32_wifi_event_handler(void *ctx, system_event_t *event) {
ESP_LOGI(TAG, "* - Our IP address is: " IPSTR, IP2STR(&event->event_info.got_ip.ip_info.ip));
ESP_LOGI(TAG, "********************************************");
t_open();
- xTaskCreatePinnedToCore(&receiver, "receiver", 4096, NULL, 5, &receiver_task, 1);
+ xTaskCreate(&receiver, "wifi_receiver", 4096, NULL, EOS_PRIORITY_WIFI, &receiver_task);
+ // xTaskCreatePinnedToCore(&receiver, "wifi_receiver", 4096, NULL, EOS_PRIORITY_WIFI, &receiver_task, 1);
eos_fe310_send(EOS_FE310_CMD_CONNECT, NULL, 0);
break;
@@ -175,7 +176,7 @@ void eos_net_init(void) {
memset(&wifi_config, 0, sizeof(wifi_config));
tcpip_adapter_init();
-// ESP_ERROR_CHECK( nvs_flash_init() );
+ // ESP_ERROR_CHECK( nvs_flash_init() );
ESP_ERROR_CHECK( esp_event_loop_init(esp32_wifi_event_handler, NULL) );
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );