のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Timebase SourceをTIM14に変更

Timebase SourceをTIM14

f:id:none53:20190717085503p:plain
Timebase SourceをTIM14

f:id:none53:20190717085620p:plain
Timebase

f:id:none53:20190717085645p:plain
code generation

xPortSysTickHandlerが呼ばれるようになった。

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. */
    portDISABLE_INTERRUPTS();
    {
        /* 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;
        }
    }
    portENABLE_INTERRUPTS();
}
/*-----------------------------------------------------------*/

myTask01とmyTask02が切り替わるようになった。

f:id:none53:20190718032303p:plain
systickからtimer14