freertos: Remove legacy data types

This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
This commit is contained in:
Darian Leung
2022-02-08 17:39:38 +08:00
parent 5810ed1d04
commit 57fd78f5ba
169 changed files with 635 additions and 706 deletions
@@ -231,7 +231,7 @@ static void tcp_server_task(void *pvParameters)
{
static char rx_buffer[128];
static const char *TAG = "nonblocking-socket-server";
xSemaphoreHandle *server_ready = pvParameters;
SemaphoreHandle_t *server_ready = pvParameters;
struct addrinfo hints = { .ai_socktype = SOCK_STREAM };
struct addrinfo *address_info;
int listen_sock = INVALID_SOCK;
@@ -388,7 +388,7 @@ void app_main(void)
ESP_ERROR_CHECK(example_connect());
#ifdef CONFIG_EXAMPLE_TCP_SERVER
xSemaphoreHandle server_ready = xSemaphoreCreateBinary();
SemaphoreHandle_t server_ready = xSemaphoreCreateBinary();
assert(server_ready);
xTaskCreate(tcp_server_task, "tcp_server", 4096, &server_ready, 5, NULL);
xSemaphoreTake(server_ready, portMAX_DELAY);