/* ** =================================================================== ** Event : FRTOS1_vApplicationTickHook (module Events) ** ** Component : FRTOS1 [FreeRTOS] ** Description : ** If enabled, this hook will be called by the RTOS for every ** tick increment. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void FRTOS1_vApplicationTickHook(void) { /* Called for every RTOS tick. */ /* Write your code here ... */ #if PL_HAS_TRIGGER TRG_IncTick(); #endif }
void TMR_OnInterrupt(void) { /* this one gets called from an interrupt!!!! */ #if PL_HAS_TRIGGER TRG_IncTick(); #endif TMOUT1_AddTick(); #if PL_HAS_MOTOR_TACHO TACHO_Sample(); #endif }
void TMR_OnInterrupt(void) { TRG_IncTick(); /* this method gets called from TimerInt(TI1) */ static int cntr=0; cntr++; if(cntr==(1000/TMR_TICK_MS)) { EVENT_SetEvent(EVENT_HEARTBEAT); cntr = 0; } }
void TMR_OnInterrupt(void) { /* this one gets called from an interrupt!!!! */ static int cntr=0; cntr++; if (cntr==(1000/TMR_TICK_MS)) { #if 1 /* setting an event */ EVNT_SetEvent(EVENT_LED_HEARTBEAT); #else /* toggling directly the LED */ LED1_Neg(); #endif cntr = 0; } #if PL_HAS_TRIGGER TRG_IncTick(); //Increment the Trigger (10ms are over) #endif }
void TMR_OnInterrupt(void) { /* this one gets called from an interrupt!!!! */ static int cntr=0; cntr++; if (cntr==(1000/TMR_TICK_MS)) { #if 1 /* setting an event */ EVNT_SetEvent(EVENT_LED_HEARTBEAT); #else /* toggling directly the LED */ LED1_Neg(); #endif cntr = 0; } #if PL_HAS_TRIGGER TRG_IncTick(); #endif TMOUT1_AddTick(); #if PL_HAS_MOTOR_TACHO TACHO_Sample(); #endif }