mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-07-08 04:05:38 +00:00
update
This commit is contained in:
parent
c98cbe6e00
commit
9ffd9dac1a
27 changed files with 113 additions and 119 deletions
|
|
@ -74,7 +74,7 @@ static int inHandlerMode (void)
|
|||
#if configSignalManagementSupport // the older FreeRTOS version didn't support Signal Management functions
|
||||
static void add_thread_signal_map (osThreadId thread_id, EventGroupHandle_t signals)
|
||||
{
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
// uint32_t i;
|
||||
ThreadSignalRec *prec_entity;
|
||||
|
||||
|
|
@ -134,8 +134,7 @@ static void add_thread_signal_map (osThreadId thread_id, EventGroupHandle_t sign
|
|||
static EventGroupHandle_t find_signal_by_thread (osThreadId thread_id)
|
||||
{
|
||||
EventGroupHandle_t signals_hdl=NULL;
|
||||
// uint32_t i;
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
ThreadSignalRec *prec_entity;
|
||||
|
||||
if (inHandlerMode()) {
|
||||
|
|
@ -157,6 +156,7 @@ static EventGroupHandle_t find_signal_by_thread (osThreadId thread_id)
|
|||
}
|
||||
|
||||
#if 0
|
||||
// uint32_t i;
|
||||
for (i=0;i<THREAD_SIGNAL_MAP_SIZE;i++)
|
||||
{
|
||||
if ((ThreadSignalMapTable[i].is_in_use) &&
|
||||
|
|
@ -185,7 +185,7 @@ static EventGroupHandle_t remove_thread_signal_map (osThreadId thread_id)
|
|||
{
|
||||
EventGroupHandle_t signals_hdl=NULL;
|
||||
// uint32_t i;
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
ThreadSignalRec *prec_entity;
|
||||
ThreadSignalRec *pprev_entity;
|
||||
|
||||
|
|
@ -989,7 +989,7 @@ osPoolId osPoolCreate (const osPoolDef_t *pool_def)
|
|||
/// \note MUST REMAIN UNCHANGED: \b osPoolAlloc shall be consistent in every CMSIS-RTOS.
|
||||
void *osPoolAlloc (osPoolId pool_id)
|
||||
{
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
void *p = NULL;
|
||||
uint32_t i;
|
||||
uint32_t index;
|
||||
|
|
@ -1047,7 +1047,7 @@ void *osPoolCAlloc (osPoolId pool_id)
|
|||
/// \note MUST REMAIN UNCHANGED: \b osPoolFree shall be consistent in every CMSIS-RTOS.
|
||||
osStatus osPoolFree (osPoolId pool_id, void *block)
|
||||
{
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
uint32_t index;
|
||||
|
||||
if (pool_id == NULL) {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ static void device_mutex_init(RT_DEV_LOCK_E device)
|
|||
}
|
||||
|
||||
//======================================================
|
||||
/*
|
||||
static void device_mutex_free(RT_DEV_LOCK_E device)
|
||||
{
|
||||
if(DEVICE_MUTEX_IS_INIT(device)){
|
||||
|
|
@ -47,7 +48,7 @@ static void device_mutex_free(RT_DEV_LOCK_E device)
|
|||
rtw_exit_critical(&lock, &irqL);
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
//======================================================
|
||||
void device_mutex_lock(RT_DEV_LOCK_E device)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,10 +57,9 @@ void tcm_heap_dump(void)
|
|||
{
|
||||
#if CONFIG_DEBUG_LOG > 1
|
||||
if(!g_heap_inited) tcm_heap_init();
|
||||
MemChunk *chunk, *prev;
|
||||
MemChunk *chunk;
|
||||
struct Heap* h = &g_tcm_heap;
|
||||
int count = 0;
|
||||
int free_mem;
|
||||
|
||||
DBG_8195A("TCM Free Heap Memory List:\n");
|
||||
for (chunk = h->FreeList; chunk; chunk = chunk->next) {
|
||||
|
|
@ -68,6 +67,7 @@ void tcm_heap_dump(void)
|
|||
}
|
||||
|
||||
/*
|
||||
MemChunk *prev;
|
||||
for (prev = (MemChunk *)&h->FreeList, chunk = h->FreeList;
|
||||
chunk;
|
||||
prev = chunk, chunk = chunk->next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue