This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C1294XL: SysTick Handler for enet_s2e example

Part Number: EK-TM4C1294XL

Tool/software:

Hello,

TivaWare 2.1.0.12573 uses an RTOS for the net_s2e example.  I am trying to locate where the equivalent Systick handler is located for this project.  I have a function that I would like to call within the Systick equivalent handler for an application feature.

Thanks,

Keith

  • Correction enet_s2e example for ek-tm4c1294xl dev board

  • Hi,

      Searching the project, the xPortSysTickHandler is in the port.c file. Please see below. 

  • Hi Charles,

    Just to confirm this handler is the Systick handler that gets called 1 every second?

    Thanks,

    Keith

  • Hi Keith,

      Refer to the FreeRTOS setup for SysTick. It is setup for 1mS and that is normally what RTOS does. 

    /*-----------------------------------------------------------*/

    /*
    * Setup the systick timer to generate the tick interrupts at the required
    * frequency.
    */
    #pragma WEAK( vPortSetupTimerInterrupt )
    void vPortSetupTimerInterrupt( void )
    {
    /* Calculate the constants required to configure the tick interrupt. */
    #if ( configUSE_TICKLESS_IDLE == 1 )
    {
    ulTimerCountsForOneTick = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ );
    xMaximumPossibleSuppressedTicks = portMAX_24_BIT_NUMBER / ulTimerCountsForOneTick;
    ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
    }
    #endif /* configUSE_TICKLESS_IDLE */

    /* Stop and clear the SysTick. */
    portNVIC_SYSTICK_CTRL_REG = 0UL;
    portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;

    /* Configure SysTick to interrupt at the requested rate. */
    portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
    portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );

  • Hi Charles,

    Thank you for the info.