Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
os_port.h
00001 #ifndef HEADER_OS_PORT_H 00002 #define HEADER_OS_PORT_H 00003 #ifdef __cplusplus 00004 extern "C" { 00005 #endif 00006 00007 #include "config.h" 00008 00009 //#include <Thread.h> 00010 #define SSL_CTX_MUTEX_TYPE //Mutex 00011 #define SSL_CTX_MUTEX_INIT(A) //pthread_mutex_init(&A, NULL) 00012 #define SSL_CTX_MUTEX_DESTROY(A) //pthread_mutex_destroy(&A) 00013 #define SSL_CTX_LOCK(A) //pthread_mutex_lock(&A) 00014 #define SSL_CTX_UNLOCK(A) //pthread_mutex_unlock(&A) 00015 00016 #define malloc(A) ax_malloc(A) 00017 #ifndef realloc 00018 #define realloc(A,B) ax_realloc(A,B) 00019 #endif 00020 #define calloc(A,B) ax_calloc(A,B) 00021 00022 #define STDCALL 00023 #define EXP_FUNC 00024 EXP_FUNC void * STDCALL ax_malloc(size_t s); 00025 EXP_FUNC void * STDCALL ax_realloc(void *y, size_t s); 00026 EXP_FUNC void * STDCALL ax_calloc(size_t n, size_t s); 00027 //EXP_FUNC int STDCALL ax_open(const char *pathname, int flags); 00028 00029 #define SOCKET_READ(A,B,C) lwip_recv(A,B,C,0) 00030 #define SOCKET_WRITE(A,B,C) lwip_send(A,B,C,0) 00031 #define SOCKET_CLOSE(A) closesocket(A) 00032 #define TTY_FLUSH() 00033 #ifdef __cplusplus 00034 } 00035 #endif 00036 #endif
Generated on Tue Jul 12 2022 18:48:01 by
1.7.2