FreeRTOS
|
FreeRTOS for Due and Teensy 3.0. More...
Macros | |
#define | CAL_FACTOR (F_CPU/7000) |
Functions | |
void | assertBlink () |
void | bus_fault_isr () |
void | BusFault_Handler () |
static void | delayMS (uint32_t millis) |
static void | errorBlink (int n) |
void | hard_fault_isr () |
void | HardFault_Handler () |
unsigned long | ulMainGetRunTimeCounterValue () |
void | usage_fault_isr () |
void | UsageFault_Handler () |
void | vApplicationIdleHook (void) |
void | vApplicationMallocFailedHook () |
void | vApplicationStackOverflowHook (TaskHandle_t pxTask, char *pcTaskName) |
void | vApplicationTickHook () |
void | vMainConfigureTimerForRunTimeStats (void) |
FreeRTOS for Due and Teensy 3.0.
#define CAL_FACTOR (F_CPU/7000) |
calibration factor for delayMS
void assertBlink | ( | ) |
assertBlink Blink one short pulse every two seconds if configASSERT fails.
void bus_fault_isr | ( | ) |
Bus fault - blink five short flashes every two seconds
void BusFault_Handler | ( | ) |
Bus fault - blink five short flashes every two seconds
|
static |
delay between led error flashes
[in] | millis | milliseconds to delay |
|
static |
Blink error pattern
[in] | n | number of short pulses |
void hard_fault_isr | ( | ) |
Hard fault - blink four short flash every two seconds
void HardFault_Handler | ( | ) |
Hard fault - blink four short flash every two seconds
unsigned long ulMainGetRunTimeCounterValue | ( | ) |
Dummy function
void usage_fault_isr | ( | ) |
Usage fault - blink six short flashes every two seconds
void UsageFault_Handler | ( | ) |
Usage fault - blink six short flashes every two seconds
void vApplicationIdleHook | ( | void | ) |
vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle task. It is essential that code added to this hook function never attempts to block in any way (for example, call xQueueReceive() with a block time specified, or call vTaskDelay()). If the application makes use of the vTaskDelete() API function (as this demo application does) then it is also important that vApplicationIdleHook() is permitted to return to its calling function, because it is the responsibility of the idle task to clean up memory allocated by the kernel to any task that has since been deleted.
void vApplicationMallocFailedHook | ( | ) |
vApplicationMallocFailedHook() Blink two short pulses if malloc fails.
will only be called if configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h. It is a hook function that will get called if a call to pvPortMalloc() fails. pvPortMalloc() is called internally by the kernel whenever a task, queue, timer or semaphore is created. It is also called by various parts of the demo application. If heap_1.c or heap_2.c are used, then the size of the heap available to pvPortMalloc() is defined by configTOTAL_HEAP_SIZE in FreeRTOSConfig.h, and the xPortGetFreeHeapSize() API function can be used to query the size of free heap space that remains (although it does not provide information on how the remaining heap might be fragmented).
void vApplicationStackOverflowHook | ( | TaskHandle_t | pxTask, |
char * | pcTaskName | ||
) |
Blink three short pulses if stack overflow is detected. Run time stack overflow checking is performed if configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is called if a stack overflow is detected.
[in] | pxTask | Task handle |
[in] | pcTaskName | Task name |
void vApplicationTickHook | ( | ) |
This function will be called by each tick interrupt if configUSE_TICK_HOOK is set to 1 in FreeRTOSConfig.h. User code can be added here, but the tick hook is called from an interrupt context, so code must not attempt to block, and only the interrupt safe FreeRTOS API functions can be used (those that end in FromISR()).
void vMainConfigureTimerForRunTimeStats | ( | void | ) |
Dummy time stats gathering functions need to be defined to keep the linker happy. Could edit FreeRTOSConfig.h to remove these.