void SysTick_Handler(void) { __IO static uint16_t tick_cnt = 0; __IO static uint16_t tick_cnt1 = 0; tick_cnt++; tick_cnt1++; if (tick_cnt >= 2) { tick_cnt = 0; tick_20ms = SET; } if (tick_cnt1 >= 10) { tick_cnt1 = 0; tick_100ms = SET; } tick_10ms = SET; tick_10ms_putin = SET; tick_10ms_refresh = SET; tick_10ms_key = SET; TimingDelay_Decrement(&LssuedParameterWait);//下发参数等待时间 TimingDelay_Decrement(&CoordinatePoint);//坐标系打点计数 }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { /* TimingDelay_Decrement(); */ #ifdef USE_STM32L_DISCOVERY TimingDelay_Decrement(); #endif }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { // /* Toggle leds available on STM32F429I-DISCO */ // STM_EVAL_LEDToggle(LED3); // STM_EVAL_LEDToggle(LED4); TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { if(demo_mode == 0) xPortSysTickHandler(); else TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); if(USART1_usartRxTimer) USART1_usartRxTimer--; if(USART2_usartRxTimer) USART2_usartRxTimer--; }
/** * @brief This function handles SysTick Handler. * @param None * @retval : None */ void SysTick_Handler(void) { TimingDelay_Decrement(); // if(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_2) == 0) GPIO_SetBits(GPIOD,GPIO_Pin_2); // else GPIO_ResetBits(GPIOD,GPIO_Pin_2); }
void SysTick_Handler(void) { mSysTick ++; usart_timeout(0, 0); usart_timeout(1, 0); TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); // if ( Command_index == 1) { Time_Rec_Base ++; } }
void SysTick_Handler(void) { TimingDelay_Decrement(); systick++; }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); #if defined MEDIA_USB_KEY if ( Command_index == 1) { Time_Rec_Base ++; } #endif }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { uint8_t *buf; uint8_t temp1, temp2 = 0x00; TimingDelay_Decrement(); }
void SysTick_Handler(void) { TimingDelay_Decrement(); systick++; if(systick % 1000 == 0) { DHCP_time_handler(); DNS_time_handler(); } }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { /* System Heart Beat every 100 msec */ if(ulHeartBeat) { ulHeartBeat--; } else { STM_EVAL_LEDToggle(LED4); ulHeartBeat = 100; } if(AdcTempSenTest) { if(AdcDelay) { AdcDelay--; } else { STM_EVAL_LEDToggle(LED5); AdcDelay = 100; } } if(IT_AdcTempSenTest) { if(IT_AdcDelay) { IT_AdcDelay--; } else { STM_EVAL_LEDToggle(LED6); IT_AdcDelay = 100; } } if(NeopixelRingStart) { if(NeopixelRingTimer) { NeopixelRingTimer--; } else { STM_EVAL_LEDToggle(LED6); NeopixelRingTimer = RING_TIMER; NeopixelRingWorker(); } } TimingDelay_Decrement(); }
void SysTick_Handler(void) { TimingDelay_Decrement(); dhcp_1sec++; if(dhcp_1sec>1000) { DHCP_time_handler(); dhcp_1sec =0; } }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { if(sysTick++ == 10000) { sysTick = 0; LEDstatus(); } //SoftPWM(); HardLEDPWM(); TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { DeadManDelay_Decrement(); if (!TimingDelay) { TimingDelay_Reload(); LogA_ToggleActiveLED(); } else { TimingDelay_Decrement(); } }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { uint8_t *buf; uint8_t temp1, temp2 = 0x00; if (DemoEnterCondition == 0x00) { TimingDelay_Decrement(); } else { } }
void SysTick_Handler(void) { /* used for delay routine */ TimingDelay_Decrement(); /* used for power managements */ PWR_Mgn(); /* GPS Logger Mode Special */ if(TaskStat == GPS_LOGGING) ChkAckLimit(); /* key inputs */ /* JoyInp_Chk(); */ /* FatFs ralation inputs */ /*ff_support_timerproc();*/ }
void SysTick_Handler(void) { TimingDelay_Decrement(); //Check button for reset if(GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_10)==Bit_RESET) timePressed++; else timePressed=0; if(timePressed==100) { //throw push button exception EXTI_GenerateSWInterrupt(EXTI_Line14); } if(timePressed==TIME_TO_RESET) //Reset NVIC_SystemReset(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { static uint32_t decimation = 0; TimingDelay_Decrement(); if( decimation == 100) { uint16_t val = avg_voltage[0]; USART_puts_chars(USART1,start_packet); uint32_t size = sizeof(uint16_t); USART_puts_ints(USART1,(uint8_t*)&val,size); decimation = 0; STM_EVAL_LEDToggle(LED3); } else { decimation++; } }
/** * @brief Обработчик прерывания системного таймера * @retval нет */ void SysTick_Handler(void) { int i; TimingDelay_Decrement(); for(i = 0; i < TIMER_HANDLERS; i++) { if(Handlers[i].Run) { if(--Handlers[i].Countdown == 0) { Handlers[i].Countdown = Handlers[i].Reload; /* Запишем, что сработало */ Handlers[i].Fired = true; } } } }
/******************************************************************************* * Function Name : SysTick_Handler * Description : This function handles SysTick Handler. * Input : None * Output : None * Return : None *******************************************************************************/ void SysTick_Handler(void) { //static u16 a = 0; //deb TimingDelay_Decrement(); #ifndef VER_3 handleTimerBtn(); handleTimerAccel(); #endif gps_usart_decr_timer(); handleTimerADC(); //gpsPacketQueueHandle(); handleTimerGSMPresence(); handleTimerUSBBoot(); handleTimerSendGSMFTP(); handleTimerPackets(); handleTimerPrBin(); handleTimerIWDG(); handleTimerAlarm(); handleTimerLeds(); handleTimerAnChanging(); handleTimerGPRSModem(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { if (UploadCondition != 0x00) { /* Check if User button Pressed */ if (STM_EVAL_PBGetState(BUTTON_BANDM) == Bit_RESET) { if (TimingDelay != 0x00) { TimingDelay--; } else { if (Counter < 100) { Counter++; } else { /* Toggle Blue LED : Upload condition Verified */ /* STM_EVAL_LEDToggle(LED6); */ Counter = 0x00; } } } else { if (TimingDelay != 0x00) { UploadCondition = 0x00; } } } else { TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); /* CPAL Timeout manager handler */ CPAL_I2C_TIMEOUT_Manager(); if (Counter == 20) { /* Toggle LED's */ STM_EVAL_LEDToggle(LED1); STM_EVAL_LEDToggle(LED2); STM_EVAL_LEDToggle(LED3); STM_EVAL_LEDToggle(LED4); /* Reset Counter */ Counter = 0; } else { /* increment Counter */ Counter++; } }
/** * @brief This function handles SysTick interrupts. * @param None * @retval None */ void SysTick_Handler(void) { disableInterrupts(); TimingDelay_Decrement(); enableInterrupts(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { uint8_t temp1, temp2 = 0x00; if (DemoEnterCondition == 0x00) { TimingDelay_Decrement(); } else { // Wysy³anie danych USB for(int i = 0; i <= 3; i++){ APP_Rx_Buffer[APP_Rx_ptr_in] = Buffer[i]; APP_Rx_ptr_in++; /* To avoid buffer overflow */ if(APP_Rx_ptr_in == APP_RX_DATA_SIZE) { APP_Rx_ptr_in = 0; } } // Koniec // buf = USBD_HID_GetPos(); // if((buf[1] != 0) ||(buf[2] != 0)) // { // USBD_HID_SendReport (&USB_OTG_dev, // buf, // 4); // } Counter ++; if (Counter == 10) { Buffer[0] = 0; Buffer[2] = 0; /* Disable All TIM4 Capture Compare Channels */ TIM_CCxCmd(TIM4, TIM_Channel_1, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_2, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_3, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_4, DISABLE); LIS302DL_Read(Buffer, LIS302DL_OUT_X_ADDR, 6); /* Remove the offsets values from data */ Buffer[0] -= X_Offset; Buffer[2] -= Y_Offset; /* Update autoreload and capture compare registers value*/ temp1 = ABS((int8_t)(Buffer[0])); temp2 = ABS((int8_t)(Buffer[2])); TempAcceleration = MAX(temp1, temp2); if(TempAcceleration != 0) { if ((int8_t)Buffer[0] < -2) { /* Enable TIM4 Capture Compare Channel 4 */ TIM_CCxCmd(TIM4, TIM_Channel_4, ENABLE); /* Sets the TIM4 Capture Compare4 Register value */ TIM_SetCompare4(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[0] > 2) { /* Enable TIM4 Capture Compare Channel 2 */ TIM_CCxCmd(TIM4, TIM_Channel_2, ENABLE); /* Sets the TIM4 Capture Compare2 Register value */ TIM_SetCompare2(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[2] > 2) { /* Enable TIM4 Capture Compare Channel 1 */ TIM_CCxCmd(TIM4, TIM_Channel_1, ENABLE); /* Sets the TIM4 Capture Compare1 Register value */ TIM_SetCompare1(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[2] < -2) { /* Enable TIM4 Capture Compare Channel 3 */ TIM_CCxCmd(TIM4, TIM_Channel_3, ENABLE); /* Sets the TIM4 Capture Compare3 Register value */ TIM_SetCompare3(TIM4, TIM_CCR/TempAcceleration); } /* Time base configuration */ TIM_SetAutoreload(TIM4, TIM_ARR/TempAcceleration); } Counter = 0x00; } } }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); TimeStamp_Increment(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler() { TimingDelay_Decrement(); }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { uint8_t *buf; uint8_t temp1, temp2 = 0x00; if (DemoEnterCondition == 0x00) { TimingDelay_Decrement(); } else { buf = USBD_HID_GetPos(); if((buf[1] != 0) ||(buf[2] != 0)) { USBD_HID_SendReport (&USB_OTG_dev, buf, 4); } Counter ++; if (Counter == 10) { Buffer[0] = 0; Buffer[2] = 0; /* Disable All TIM4 Capture Compare Channels */ TIM_CCxCmd(TIM4, TIM_Channel_1, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_2, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_3, DISABLE); TIM_CCxCmd(TIM4, TIM_Channel_4, DISABLE); LIS302DL_Read(Buffer, LIS302DL_OUT_X_ADDR, 6); /* Remove the offsets values from data */ Buffer[0] -= X_Offset; Buffer[2] -= Y_Offset; /* Update autoreload and capture compare registers value*/ temp1 = ABS((int8_t)(Buffer[0])); temp2 = ABS((int8_t)(Buffer[2])); TempAcceleration = MAX(temp1, temp2); if(TempAcceleration != 0) { if ((int8_t)Buffer[0] < -2) { /* Enable TIM4 Capture Compare Channel 4 */ TIM_CCxCmd(TIM4, TIM_Channel_4, ENABLE); /* Sets the TIM4 Capture Compare4 Register value */ TIM_SetCompare4(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[0] > 2) { /* Enable TIM4 Capture Compare Channel 2 */ TIM_CCxCmd(TIM4, TIM_Channel_2, ENABLE); /* Sets the TIM4 Capture Compare2 Register value */ TIM_SetCompare2(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[2] > 2) { /* Enable TIM4 Capture Compare Channel 1 */ TIM_CCxCmd(TIM4, TIM_Channel_1, ENABLE); /* Sets the TIM4 Capture Compare1 Register value */ TIM_SetCompare1(TIM4, TIM_CCR/TempAcceleration); } if ((int8_t)Buffer[2] < -2) { /* Enable TIM4 Capture Compare Channel 3 */ TIM_CCxCmd(TIM4, TIM_Channel_3, ENABLE); /* Sets the TIM4 Capture Compare3 Register value */ TIM_SetCompare3(TIM4, TIM_CCR/TempAcceleration); } /* Time base configuration */ TIM_SetAutoreload(TIM4, TIM_ARR/TempAcceleration); } Counter = 0x00; } } }
/** * @brief This function handles SysTick Handler. * @param None * @retval None */ void SysTick_Handler(void) { TimingDelay_Decrement(); USBConnectTimeOut--; DataReady ++; }