- OS Thread function definition macros have been replaced by typedefs

This commit is contained in:
Wiesner András 2023-10-28 07:54:04 +02:00
parent e83c47b041
commit 903258a796

View File

@ -42,7 +42,7 @@ static void ethintf_register(EthInterface * intf) {
} }
// interface processing thread // interface processing thread
static ETHLIB_OS_THREAD_FUNCTION(task_ethintf); static ThreadReturnType task_ethintf (ThreadParamType param);
EthInterface *ethintf_new(EthIODef * io) { EthInterface *ethintf_new(EthIODef * io) {
EthInterface * ethIntf = (EthInterface *)dynmem_alloc(sizeof(EthInterface)); EthInterface * ethIntf = (EthInterface *)dynmem_alloc(sizeof(EthInterface));
@ -75,7 +75,7 @@ EthInterface *ethintf_new(EthIODef * io) {
return ethIntf; return ethIntf;
} }
static ETHLIB_OS_THREAD_FUNCTION(task_ethintf) { static ThreadReturnType task_ethintf (ThreadParamType param) {
EthInterface * intf = (EthInterface *) param; EthInterface * intf = (EthInterface *) param;
while (true) { while (true) {
ETHLIB_OS_SEM_WAIT(&intf->rxSem); ETHLIB_OS_SEM_WAIT(&intf->rxSem);