From 1188f4a0b9cc027115f8983aa454bc20c8681704 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Thu, 28 Jun 2018 14:17:30 +0100 Subject: [PATCH] lwip: fix rtx storage types --- features/lwipstack/LWIPStack.h | 10 +++++----- features/lwipstack/lwip-sys/arch/sys_arch.h | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/features/lwipstack/LWIPStack.h b/features/lwipstack/LWIPStack.h index ff66624562..3ed82cf6d3 100644 --- a/features/lwipstack/LWIPStack.h +++ b/features/lwipstack/LWIPStack.h @@ -141,20 +141,20 @@ public: void *hw; /**< alternative implementation pointer - used for PPP */ }; - os_semaphore_t linked_sem; + mbed_rtos_storage_semaphore_t linked_sem; osSemaphoreId_t linked; - os_semaphore_t unlinked_sem; + mbed_rtos_storage_semaphore_t unlinked_sem; osSemaphoreId_t unlinked; - os_semaphore_t has_any_addr_sem; + mbed_rtos_storage_semaphore_t has_any_addr_sem; osSemaphoreId_t has_any_addr; #define HAS_ANY_ADDR 1 #if PREF_ADDR_TIMEOUT - os_semaphore_t has_pref_addr_sem; + mbed_rtos_storage_semaphore_t has_pref_addr_sem; osSemaphoreId_t has_pref_addr; #define HAS_PREF_ADDR 2 #endif #if BOTH_ADDR_TIMEOUT - os_semaphore_t has_both_addr_sem; + mbed_rtos_storage_semaphore_t has_both_addr_sem; osSemaphoreId_t has_both_addr; #define HAS_BOTH_ADDR 4 #endif diff --git a/features/lwipstack/lwip-sys/arch/sys_arch.h b/features/lwipstack/lwip-sys/arch/sys_arch.h index 85ba1bf058..6a968db966 100644 --- a/features/lwipstack/lwip-sys/arch/sys_arch.h +++ b/features/lwipstack/lwip-sys/arch/sys_arch.h @@ -21,6 +21,8 @@ #include "lwip/opt.h" #include "mbed_rtos_storage.h" +#include + extern u8_t lwip_ram_heap[]; #if NO_SYS == 0