Prusa MINI Firmware overview
|
Go to the source code of this file.
◆ portNUM_CONFIGURABLE_REGIONS
#define portNUM_CONFIGURABLE_REGIONS 1 |
◆ HeapRegion_t
◆ pxPortInitialiseStack()
◆ vPortDefineHeapRegions()
◆ pvPortMalloc()
157 BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
158 void *pvReturn =
NULL;
181 if( xWantedSize > 0 )
187 if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
191 configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
207 pxPreviousBlock = &
xStart;
211 pxPreviousBlock = pxBlock;
217 if( pxBlock !=
pxEnd )
235 pxNewBlockLink = (
void * ) ( ( (
uint8_t * ) pxBlock ) + xWantedSize );
236 configASSERT( ( ( (
size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
286 #if( configUSE_MALLOC_FAILED_HOOK == 1 )
288 if( pvReturn ==
NULL )
290 extern void vApplicationMallocFailedHook(
void );
291 vApplicationMallocFailedHook();
300 configASSERT( ( ( (
size_t ) pvReturn ) & (
size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
◆ vPortFree()
317 pxLink = (
void * ) puc;
◆ vPortInitialiseBlocks()
◆ xPortGetFreeHeapSize()
◆ xPortGetMinimumEverFreeHeapSize()
◆ xPortStartScheduler()
324 #if( configASSERT_DEFINED == 1 )
326 volatile uint32_t ulOriginalPriority;
328 volatile uint8_t ucMaxPriorityValue;
336 ulOriginalPriority = *pucFirstUserPriorityRegister;
343 ucMaxPriorityValue = *pucFirstUserPriorityRegister;
353 ulMaxPRIGROUPValue--;
354 ucMaxPriorityValue <<= (
uint8_t ) 0x01;
364 *pucFirstUserPriorityRegister = ulOriginalPriority;
◆ vPortEndScheduler()
size_t xBlockSize
Definition: heap_4.c:114
static BlockLink_t * pxEnd
Definition: heap_4.c:140
#define configASSERT(x)
Definition: FreeRTOSConfig.h:162
#define portCORTEX_M7_r0p0_ID
Definition: port.c:108
#define heapMINIMUM_BLOCK_SIZE
Definition: heap_4.c:95
#define portPRIGROUP_SHIFT
Definition: port.c:121
#define portCORTEX_M7_r0p1_ID
Definition: port.c:107
#define traceMALLOC(pvAddress, uiSize)
Definition: FreeRTOS.h:570
#define portNVIC_PENDSV_PRI
Definition: port.c:110
static void prvTaskExitError(void)
Definition: port.c:259
#define NULL
Definition: usbd_def.h:53
#define portNVIC_SYSTICK_PRI
Definition: port.c:111
#define portFPCCR
Definition: port.c:127
static size_t xMinimumEverFreeBytesRemaining
Definition: heap_4.c:145
#define portBYTE_ALIGNMENT
Definition: portmacro.h:117
static size_t xFreeBytesRemaining
Definition: heap_4.c:144
#define portCPUID
Definition: port.c:106
static size_t xBlockAllocatedBit
Definition: heap_4.c:151
struct A_BLOCK_LINK * pxNextFreeBlock
Definition: heap_4.c:113
void
Definition: png.h:1083
#define portMAX_8_BIT_VALUE
Definition: port.c:117
static void prvInsertBlockIntoFreeList(BlockLink_t *pxBlockToInsert)
Definition: heap_4.c:419
#define configMAX_SYSCALL_INTERRUPT_PRIORITY
Definition: FreeRTOSConfig.h:157
static UBaseType_t uxCriticalNesting
Definition: port.c:157
#define traceFREE(pvAddress, uiSize)
Definition: FreeRTOS.h:574
const uint8_t[]
Definition: 404_html.c:3
static void prvHeapInit(void)
Definition: heap_4.c:371
#define portNVIC_SYSPRI2_REG
Definition: port.c:96
static const size_t xHeapStructSize
Definition: heap_4.c:137
static BlockLink_t xStart
Definition: heap_4.c:140
#define portTOP_BIT_OF_BYTE
Definition: port.c:118
void vPortSetupTimerInterrupt(void)
PRIVILEGED_FUNCTION BaseType_t xTaskResumeAll(void)
Definition: tasks.c:2017
#define portFIRST_USER_INTERRUPT_NUMBER
Definition: port.c:114
static void prvPortStartFirstTask(void)
Definition: port.c:292
#define portMAX_PRIGROUP_BITS
Definition: port.c:119
#define portNVIC_IP_REGISTERS_OFFSET_16
Definition: port.c:115
#define portASPEN_AND_LSPEN_BITS
Definition: port.c:128
PRIVILEGED_FUNCTION void vTaskSuspendAll(void)
Definition: tasks.c:1944
static void vPortEnableVFP(void)
Definition: port.c:689
#define portPRIORITY_GROUP_MASK
Definition: port.c:120
#define const
Definition: zconf.h:230
#define mtCOVERAGE_TEST_MARKER()
Definition: FreeRTOS.h:748