mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
52c964be3f
commit
a590693719
37 changed files with 1008 additions and 841 deletions
|
|
@ -74,12 +74,12 @@ 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;
|
||||
uint32_t dummy;
|
||||
// uint32_t i;
|
||||
ThreadSignalRec *prec_entity;
|
||||
|
||||
if (inHandlerMode()) {
|
||||
dummy = portSET_INTERRUPT_MASK_FROM_ISR();
|
||||
dummy = portSET_INTERRUPT_MASK_FROM_ISR();
|
||||
}
|
||||
else {
|
||||
vPortEnterCritical();
|
||||
|
|
@ -135,7 +135,7 @@ static EventGroupHandle_t find_signal_by_thread (osThreadId thread_id)
|
|||
{
|
||||
EventGroupHandle_t signals_hdl=NULL;
|
||||
// uint32_t i;
|
||||
int dummy;
|
||||
uint32_t dummy;
|
||||
ThreadSignalRec *prec_entity;
|
||||
|
||||
if (inHandlerMode()) {
|
||||
|
|
@ -185,7 +185,7 @@ static EventGroupHandle_t remove_thread_signal_map (osThreadId thread_id)
|
|||
{
|
||||
EventGroupHandle_t signals_hdl=NULL;
|
||||
// uint32_t i;
|
||||
int dummy;
|
||||
uint32_t dummy;
|
||||
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;
|
||||
uint32_t dummy;
|
||||
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;
|
||||
uint32_t dummy;
|
||||
uint32_t index;
|
||||
|
||||
if (pool_id == NULL) {
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ space. */
|
|||
#define xBlockAllocatedBit (( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ))
|
||||
|
||||
/* Realtek test code start */
|
||||
//TODO: remove section when combine BD and BF
|
||||
#if (defined(CONFIG_PLATFORM_8195A) || defined(CONFIG_PLATFORM_8711B))
|
||||
#include "section_config.h"
|
||||
SRAM_HEAP_SECTION
|
||||
|
|
@ -541,7 +540,7 @@ const HeapRegion_t *pxHeapRegion;
|
|||
uint8 chip_id = HalGetChipId();
|
||||
while( pxHeapRegion->xSizeInBytes > 0 )
|
||||
{
|
||||
if(pxHeapRegion->pucStartAddress > 0x20000000
|
||||
if(pxHeapRegion->pucStartAddress > (uint8_t *)0x20000000
|
||||
&& chip_id >= CHIP_ID_8711AN && chip_id <= CHIP_ID_8711AF) {
|
||||
// pxHeapRegion->pucStartAddress = 0;
|
||||
// pxHeapRegion->xSizeInBytes = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue