Remove code related to PLATFORM_OS_CE

This commit is contained in:
Carlos Garces
2021-10-14 20:40:03 +02:00
parent b8fb1c691d
commit b7fc146dee
27 changed files with 125 additions and 638 deletions

View File

@@ -845,18 +845,10 @@ void _rtw_init_sema(_sema *sema, int init_val)
#endif
#ifdef PLATFORM_OS_CE
if (*sema == NULL)
*sema = CreateSemaphore(NULL, init_val, SEMA_UPBND, NULL);
#endif
}
void _rtw_free_sema(_sema *sema)
{
#ifdef PLATFORM_OS_CE
CloseHandle(*sema);
#endif
}
@@ -869,9 +861,6 @@ void _rtw_up_sema(_sema *sema)
#endif
#ifdef PLATFORM_OS_CE
ReleaseSemaphore(*sema, 1, NULL);
#endif
}
u32 _rtw_down_sema(_sema *sema)
@@ -886,12 +875,6 @@ u32 _rtw_down_sema(_sema *sema)
#endif
#ifdef PLATFORM_OS_CE
if (WAIT_OBJECT_0 == WaitForSingleObject(*sema, INFINITE))
return _SUCCESS;
else
return _FAIL;
#endif
}
inline void thread_exit(_completion *comp)
@@ -900,10 +883,6 @@ inline void thread_exit(_completion *comp)
complete_and_exit(comp, 0);
#endif
#ifdef PLATFORM_OS_CE
ExitThread(STATUS_SUCCESS);
#endif
}
inline void _rtw_init_completion(_completion *comp)
@@ -936,10 +915,6 @@ void _rtw_mutex_init(_mutex *pmutex)
#endif
#endif
#ifdef PLATFORM_OS_CE
*pmutex = CreateMutex(NULL, _FALSE, NULL);
#endif
}
void _rtw_mutex_free(_mutex *pmutex);
@@ -953,9 +928,6 @@ void _rtw_mutex_free(_mutex *pmutex)
#endif
#ifdef PLATFORM_OS_CE
#endif
}
void _rtw_spinlock_init(_lock *plock)