本文整理汇总了C++中HAL_SYSTICK_IRQHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ HAL_SYSTICK_IRQHandler函数的具体用法?C++ HAL_SYSTICK_IRQHandler怎么用?C++ HAL_SYSTICK_IRQHandler使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HAL_SYSTICK_IRQHandler函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
// SEGGER_SYSVIEW_RecordEnterISR();
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
/* USER CODE BEGIN SysTick_IRQn 1 */
// SEGGER_SYSVIEW_RecordEnterISR();
/* USER CODE END SysTick_IRQn 1 */
}
示例2: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
示例3: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
/* USER CODE BEGIN SysTick_IRQn 1 */
// HAL_GPIO_TogglePin(USB_CON_GPIO_Port, USB_CON_Pin);
/* USER CODE END SysTick_IRQn 1 */
}
示例4: SysTick_Handler
//System Timer, 1ms ISR
void SysTick_Handler(void)
{
// Decrement to zero the counter used by the delay routine.
if(timer_delayCount != 0u)
{
--timer_delayCount;
}
//For USB delays:
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
}
示例5: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
emfat_request_time++;
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
示例6: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void) {
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
static uint_fast16_t counter = 0;
counter++;
if (counter & 8) {
DIO8_InputDebounce();
}
if (counter > 999) {
counter = 0;
NewSecond = 1;
UnixTimestamp++;
}
}
示例7: SysTick_Handler
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
/* USER CODE BEGIN SysTick_IRQn 1 */
#ifdef USE_STM32F4_EMWIN
// OS_TimeMS++; // EmWin Ticks
#endif
#ifdef USE_STM32F4_AUDIO
/* Test on the command: Recording */
if (CmdIndex == CMD_RECORD)
{
/* Increments the time recording base variable */
TimeRecBase ++;
}
#endif
/* USER CODE END SysTick_IRQn 1 */
}
示例8: SysTick_Handler
/**
* @brief This function handles SysTick Handler.
* @param None
* @retval None
*/
void SysTick_Handler(void)
{
HAL_SYSTICK_IRQHandler();
}
示例9: main
//.........这里部分代码省略.........
current3 = adc_read(battery3.i_adc_chan);
voltage3 = adc_read(battery3.v_adc_chan);
props_bat3.i_adc_val = props_bat3.i_adc_val + current3;
props_bat3.v_adc_val = props_bat3.v_adc_val + voltage3;
/* Over-current protection */
if(current3>3950 || current3<100)
{
u8_oc3++;
if(u8_oc3 > 15)
{
conv_init(battery3);
bat_stat3 = OVERCURRENT;
}
}
else
{
u8_oc3 = 0;
}
i3++;
#endif
#ifdef BAT2
/* Second battery */
if(TimeCounter4>=5) // 4ms, ie 2 periods of 500Hz sine wave
{
switch(bat_stat4) {
case DISCHARGE:
bat_stat4 = discharge_main(battery4, &props_bat4, &restStartms4, i4, bat_stat4);
break;
case CC:
bat_stat4 = chg_ctrl(battery4, &props_bat4, i4, i4_origin);
break;
case CV:
bat_stat4 = cv_main(battery4, &props_bat4, &restStartms4, i4, i4_origin, bat_stat4);
break;
case FULL:
if(HAL_GetTick() - restStartms4 >= REST)
{
props_bat4.i_adc_val = 0;
props_bat4.v_adc_val = 0;
props_bat4.adc_val_old = adc_read(battery4.i_adc_chan);
bat_stat4 = DISCHARGE;
}
break;
case LVDC:
if(HAL_GetTick() - restStartms4 >= REST)
{
props_bat4.i_adc_val = 0;
props_bat4.v_adc_val = 0;
props_bat4.adc_val_old = adc_read(battery4.i_adc_chan);
bat_stat4 = CC;
}
break;
case OK:
props_bat4.i_adc_val = 0; // normally reset in d/chg func, but not used so reset here
props_bat4.v_adc_val = 0; // normally reset in d/chg func, but not used so reset here
bat_stat4 = CC;
break;
case OVERCURRENT:
bat_stat4 = OVERCURRENT;
break;
default:
bat_stat4 = OK;
break;
}
TimeCounter4 = 0;
i4 = 0;
}
/* Update ADC readings */
current4 = adc_read(battery4.i_adc_chan);
voltage4 = adc_read(battery4.v_adc_chan);
props_bat4.i_adc_val = props_bat4.i_adc_val + current4;
props_bat4.v_adc_val = props_bat4.v_adc_val + voltage4;
/* Over-current protection */
if(current4>3950 || current4<100)
{
u8_oc4++;
if(u8_oc4 > 15)
{
conv_init(battery4);
bat_stat4 = OVERCURRENT;
}
}
else
{
u8_oc4 = 0;
}
i4++;
#endif
HAL_SYSTICK_IRQHandler();
}
}
示例10: SysTick_Handler
void SysTick_Handler(void)
{
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
sysTick++;
}