chore: sdk compiles almost w/o warnings?
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
#include "timers.h"
|
||||
#include "queue.h"
|
||||
#include "semphr.h"
|
||||
#include "rtl8710b.h"
|
||||
// #include "core_cm4.h"
|
||||
|
||||
|
||||
#define FREERTOS_VERSION 0x00080001 // bits[31:16] main version, bits[15:0] sub-version
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user