예제 #1
0
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);//坐标系打点计数
}
예제 #2
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
	/*  TimingDelay_Decrement(); */
#ifdef USE_STM32L_DISCOVERY
  TimingDelay_Decrement();
#endif
}
예제 #3
0
/**
  * @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();
}
예제 #5
0
/**
  * @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--;
}
예제 #6
0
/**
  * @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);


}
예제 #7
0
void SysTick_Handler(void)
{
    mSysTick ++;

    usart_timeout(0, 0);
    usart_timeout(1, 0);
	TimingDelay_Decrement();
}
예제 #8
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
  TimingDelay_Decrement();
//  if ( Command_index == 1)
  {
    Time_Rec_Base ++;
  }
}
예제 #9
0
void SysTick_Handler(void)

{

   TimingDelay_Decrement();

   systick++;

}
예제 #10
0
파일: stm32f4xx_it.c 프로젝트: 0x00f/stm32
/**
  * @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
}
예제 #11
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
  uint8_t *buf;
  uint8_t temp1, temp2 = 0x00;
  

    TimingDelay_Decrement();

  
}
예제 #12
0
void SysTick_Handler(void)
{
	TimingDelay_Decrement();
	systick++;
	if(systick % 1000 == 0) 
	{
		DHCP_time_handler();
		DNS_time_handler();
	}

}
예제 #13
0
/**
  * @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();
}
예제 #14
0
파일: W7500x_it.c 프로젝트: Wiznet/W7500P
void SysTick_Handler(void)
{
	TimingDelay_Decrement();
	dhcp_1sec++;
	if(dhcp_1sec>1000)
	{
		DHCP_time_handler();
		dhcp_1sec =0;
	}

}
예제 #15
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();
}
예제 #16
0
파일: stm32f4xx_it.c 프로젝트: useger/src
/**
  * @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();
	}
}
예제 #17
0
/**
  * @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();*/
}
예제 #19
0
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();
    
}
예제 #20
0
파일: stm32f4xx_it.c 프로젝트: jwag/BCI
/**
  * @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++;
    }

}
예제 #21
0
/**
  * @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();
}
예제 #23
0
/**
  * @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();
  }
예제 #24
0
/**
  * @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++; 
  }
}
예제 #25
0
/**
  * @brief  This function handles SysTick interrupts.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
    disableInterrupts();
    TimingDelay_Decrement();
    enableInterrupts();
}
예제 #26
0
/**
  * @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;
    }  
  }
  
}
예제 #27
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
    TimingDelay_Decrement();
    TimeStamp_Increment();
}
예제 #28
0
/**
 * @brief  This function handles SysTick Handler.
 * @param  None
 * @retval None
 */
void SysTick_Handler() {
	TimingDelay_Decrement();
}
예제 #29
0
/**
  * @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;
    }  
  }
  
}
예제 #30
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
  TimingDelay_Decrement();
  USBConnectTimeOut--;
  DataReady ++;
}