blob: 1dedb63769df5cb82d9c8a77d655d6325a3033af (
plain)
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
|
/* This file defines and handles Pin change interupts.
* This interupt can be used in different modules and sensors. Function call can
* be done from this interrupt handdler.
*/
#include <avr/interrupt.h>
#if (defined CONFIG_IOE_SENSOR_DHT22)
#ifdef CONFIG_IOE_SENSOR_DHT22
extern void dht22_read_pcint(void);
#endif
ISR(PCINT0_vect, ISR_BLOCK) {
#ifdef CONFIG_IOE_SENSOR_DHT22
void dht22_read_pcint();
#endif
}
ISR(PCINT1_vect, ISR_BLOCK) {
#ifdef CONFIG_IOE_SENSOR_DHT22
void dht22_read_pcint();
#endif
}
ISR(PCINT2_vect, ISR_BLOCK) {
#ifdef CONFIG_IOE_SENSOR_DHT22
void dht22_read_pcint();
#endif
}
#endif
|