Merge pull request #1479 from zudwalex/infineon_rtx_support

Add RTX-RTOS support
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-03-18 09:18:49 +00:00
commit 6c021765bb
7 files changed
+99 -2

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ static void mg_set_non_blocking_mode(SOCKET fd) {
const BaseType_t off = 0;
if (setsockopt(fd, 0, FREERTOS_SO_RCVTIMEO, &off, sizeof(off)) != 0) (void) 0;
if (setsockopt(fd, 0, FREERTOS_SO_SNDTIMEO, &off, sizeof(off)) != 0) (void) 0;
#elif MG_ARCH == MG_ARCH_FREERTOS_LWIP
#elif MG_ARCH == MG_ARCH_FREERTOS_LWIP || MG_ARCH == MG_ARCH_RTX_LWIP
lwip_fcntl(fd, F_SETFL, O_NONBLOCK);
#elif MG_ARCH == MG_ARCH_AZURERTOS
fcntl(fd, F_SETFL, O_NONBLOCK);