chore: sdk compiles almost w/o warnings?

This commit is contained in:
2024-12-17 03:13:08 +06:00
parent 31efbc726f
commit 7c7b36a6b3
55 changed files with 658 additions and 514 deletions

View File

@@ -8,8 +8,12 @@
#include <stdio.h>
#include <freertos_pmu.h>
//#include <tcm_heap.h>
#include "rtl8710b.h"
#include "rtl8710b_freertos_pmu.h"
/********************* os depended utilities ********************/
extern int rtw_if_wifi_thread(const char *name);
#ifndef USE_MUTEX_FOR_SPINLOCK
#define USE_MUTEX_FOR_SPINLOCK 1
#endif
@@ -534,7 +538,7 @@ static int _freertos_arc4random(void)
return (int)seed;
}
static int _freertos_get_random_bytes(void *buf, size_t len)
static int _freertos_get_random_bytes(void *buf, u32 len)
{
#if 1 //becuase of 4-byte align, we use the follow code style.
unsigned int ranbuf;
@@ -620,7 +624,7 @@ static int _freertos_create_task(struct task_struct *ptask, const char *name,
stack_size,
task_ctx,
priority,
&ptask->task);
(TaskHandle_t*)&ptask->task);
#endif
}
else{
@@ -630,7 +634,7 @@ static int _freertos_create_task(struct task_struct *ptask, const char *name,
stack_size,
task_ctx,
priority,
&ptask->task);
(TaskHandle_t*)&ptask->task);
}
if(ret != pdPASS){
@@ -687,7 +691,7 @@ _timerHandle _freertos_timerCreate( const signed char *pcTimerName,
if(xTimerPeriodInTicks == TIMER_MAX_DELAY) {
xTimerPeriodInTicks = portMAX_DELAY;
}
return xTimerCreate((const char *)pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction);
return xTimerCreate((const char *)pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, (TimerCallbackFunction_t)pxCallbackFunction);
}
u32 _freertos_timerDelete( _timerHandle xTimer,