forked from Hellogz/DHT22
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstm32f4xx_it.c
More file actions
59 lines (49 loc) · 1.91 KB
/
stm32f4xx_it.c
File metadata and controls
59 lines (49 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
******************************************************************************
* @file stm32f4xx_it.c
* @author Ac6
* @version V1.0
* @date 02-Feb-2015
* @brief Default Interrupt Service Routines.
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include "stm32f4xx.h"
#include "stm32f4xx_it.h"
#include "dht22.h"
extern DHT22_HandleTypeDef dht;
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
void TIM3_IRQHandler(void){
/bin/bash: q: command not found
/* Execute the DHT22 IRQ Handler before clearing the IRQ Flags */
DHT22_InterruptHandler(&dht);
/* Optimised IRQ Flag clearing without callbacks for processing speed */
if(__HAL_TIM_GET_FLAG(&dht.timHandle, TIM_FLAG_CC1) != RESET)
{
if(__HAL_TIM_GET_IT_SOURCE(&dht.timHandle, TIM_IT_CC1) !=RESET)
{
{
__HAL_TIM_CLEAR_IT(&dht.timHandle, TIM_IT_CC1);
}
}
}
}
/******************************************************************************/
/* Processor Exceptions Handlers */
/******************************************************************************/
/**
* @brief This function handles SysTick Handler, but only if no RTOS defines it.
* @param None
* @retval None
*/
void SysTick_Handler(void)
{
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
}