MySensors Library & Examples
2.3.2-62-ge298769
hal
architecture
Linux
drivers
core
interrupt.h
1
/*
2
* The MySensors Arduino library handles the wireless radio link and protocol
3
* between your home built sensors/actuators and HA controller of choice.
4
* The sensors forms a self healing radio network with optional repeaters. Each
5
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
6
* network topology allowing messages to be routed to nodes.
7
*
8
* Created by Henrik Ekblad <
[email protected]
>
9
* Copyright (C) 2013-2022 Sensnology AB
10
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11
*
12
* Documentation: http://www.mysensors.org
13
* Support Forum: http://forum.mysensors.org
14
*
15
* This program is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU General Public License
17
* version 2 as published by the Free Software Foundation.
18
*
19
* Based on wiringPi Copyright (c) 2012 Gordon Henderson.
20
*/
21
22
#ifndef interrupt_h
23
#define interrupt_h
24
25
#include <stdint.h>
26
27
#define CHANGE 1
28
#define FALLING 2
29
#define RISING 3
30
#define NONE 4
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
void
attachInterrupt(uint8_t gpioPin,
void
(*func)(), uint8_t mode);
37
void
detachInterrupt(uint8_t gpioPin);
38
void
interrupts();
39
void
noInterrupts();
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
Copyright (C) 2013-2019 Sensnology AB. Generated by
doxygen
1.8.17