Smart-Home am Beispiel der Präsenzerkennung im Raum Projektarbeit Lennart Heimbs, Johannes Krug, Sebastian Dohle und Kevin Holzschuh bei Prof. Oliver Hofmann SS2019
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

interrupt.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <henrik.ekblad@mysensors.org>
  9. * Copyright (C) 2013-2018 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. #ifndef interrupt_h
  22. #define interrupt_h
  23. #include <stdint.h>
  24. #define CHANGE 1
  25. #define FALLING 2
  26. #define RISING 3
  27. #define NONE 4
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. void attachInterrupt(uint8_t gpioPin, void(*func)(), uint8_t mode);
  32. void detachInterrupt(uint8_t gpioPin);
  33. void interrupts();
  34. void noInterrupts();
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif