mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Update trace recorder source to fix some compile time warnings.
This commit is contained in:
parent
2307bc9dfa
commit
b6f2402f3f
21 changed files with 3 additions and 5935 deletions
|
@ -778,7 +778,7 @@ extern void vTraceStoreMemMangEvent(uint32_t ecode, uint32_t address, int32_t si
|
|||
#define traceMALLOC( pvAddress, uiSize ) {if (pvAddress != 0) vTraceStoreMemMangEvent(MEM_MALLOC_SIZE, ( uint32_t ) pvAddress, (int32_t)uiSize); }
|
||||
|
||||
#undef traceFREE
|
||||
#define traceFREE( pvAddress, uiSize ) {vTraceStoreMemMangEvent(MEM_FREE_SIZE, ( uint32_t ) pvAddress, (int32_t)(-uiSize)); }
|
||||
#define traceFREE( pvAddress, uiSize ) {vTraceStoreMemMangEvent(MEM_FREE_SIZE, ( uint32_t ) pvAddress, -((int32_t)uiSize)); }
|
||||
|
||||
#endif /* (TRC_CFG_SCHEDULING_ONLY == 0) && (TRC_CFG_INCLUDE_MEMMANG_EVENTS == 1) */
|
||||
|
||||
|
|
|
@ -1868,8 +1868,8 @@ static uint32_t prvTraceGetParam(uint32_t param_max, uint32_t param)
|
|||
if (xps != NULL)
|
||||
{
|
||||
xps->type = DIV_XPS;
|
||||
xps->xps_8 = (uint8_t)(param & (0xFF00 & ~param_max)) >> 8;
|
||||
xps->xps_16 = (uint16_t)(param & (0xFFFF0000 & ~param_max)) >> 16;
|
||||
xps->xps_8 = (uint8_t)((param & (0xFF00 & ~param_max)) >> 8);
|
||||
xps->xps_16 = (uint16_t)((param & (0xFFFF0000 & ~param_max)) >> 16);
|
||||
prvTraceUpdateCounters();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue