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.

Version.h 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. /**
  20. * @file Version.h
  21. *
  22. * @defgroup Versiongrp Version
  23. * @ingroup internals
  24. * @{
  25. *
  26. * This file defines the MySensors library version number
  27. * Please adjust for new releases.
  28. * These helper macros generate a numerical and alphanumerical (see http://www.semver.org) representation of the library version number, i.e
  29. *
  30. * | SemVer | Numerical | Comments
  31. * |-------------|-------------|------------------
  32. * | 2.1.0 | 0x020100FF | final
  33. * | 2.1.1-beta | 0x02010100 | first pre-release
  34. * | 2.1.1 | 0x020101FF | final
  35. * | 2.2.0-beta | 0x02020000 | first pre-release
  36. * | 2.2.0-rc.1 | 0x02020001 |
  37. * | 2.2.0-rc.2 | 0x02020002 |
  38. * | 2.2.0 | 0x020200FF | final
  39. */
  40. #ifndef Version_h
  41. #define Version_h
  42. #define STR_HELPER(x) #x //!< Helper macro, STR_HELPER()
  43. #define STR(x) STR_HELPER(x) //!< Helper macro, STR()
  44. #define MYSENSORS_LIBRARY_VERSION_MAJOR 2 //!< Major release version
  45. #define MYSENSORS_LIBRARY_VERSION_MINOR 3 //!< Minor release version
  46. #define MYSENSORS_LIBRARY_VERSION_PATCH 1 //!< Patch version
  47. #define MYSENSORS_LIBRARY_VERSION_PRERELEASE "beta" //!< Pre-release suffix, i.e. alpha, beta, rc.1, etc
  48. #define MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER 0xFF //!< incremental counter, starting at 0x00. 0xFF for final release
  49. #if (MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER != 0xFF)
  50. #define MYSENSORS_LIBRARY_VERSION STR(MYSENSORS_LIBRARY_VERSION_MAJOR) "." STR(MYSENSORS_LIBRARY_VERSION_MINOR) "." STR(MYSENSORS_LIBRARY_VERSION_PATCH) "-" MYSENSORS_LIBRARY_VERSION_PRERELEASE //!< pre-release versioning
  51. #else
  52. #define MYSENSORS_LIBRARY_VERSION STR(MYSENSORS_LIBRARY_VERSION_MAJOR) "." STR(MYSENSORS_LIBRARY_VERSION_MINOR) "." STR(MYSENSORS_LIBRARY_VERSION_PATCH) //!< final release versioning
  53. #endif
  54. #define MYSENSORS_LIBRARY_VERSION_INT ( ((uint32_t)MYSENSORS_LIBRARY_VERSION_MAJOR) << 24 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_MINOR) << 16 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PATCH) << 8 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER) ) //!< numerical versioning
  55. #endif // Version_h
  56. /** @}*/