Dear all
I am new to freeRTOS and trying some examples provided by TI with EK-TM4C1294XL LaunchPad , and noticed the function below - imported from …FreeRTOSv202212.01\FreeRTOS\Source\portable\CCS\ARM_CM4F, and have a few questions:
void xPortSysTickHandler( void )
{
/* The SysTick runs at the lowest interrupt priority, so when this interrupt
* executes all interrupts must be unmasked. There is therefore no need to
* save and then restore the interrupt mask value as its value is already
* known. */
( void ) portSET_INTERRUPT_MASK_FROM_ISR();
{
/* Increment the RTOS tick. */
if( xTaskIncrementTick() != pdFALSE )
{
/* A context switch is required. Context switching is performed in
* the PendSV interrupt. Pend the PendSV interrupt. */
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
}
}
portCLEAR_INTERRUPT_MASK_FROM_ISR( 0 );
}
- I cannot find the configuration of this sys tick rate, is it configured at 1ms interval? where I can find the code that configure the tick rate?
- In my old bare metal system, I use it for quite a few functions at lower tick rate like a few microSeconds, am I still be able to use it that way? in other words, am I allowed to modified it to run my own code?
- If no, is there a way that I can run some very fast routine regularly?
Thank you!
Ping