gpio-bits.h 978 B

12345678910111213141516171819202122232425262728
  1. // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
  2. // Copyright (C) 2013 Henner Zeller <h.zeller@acm.org>
  3. //
  4. // This program is free software; you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation version 2.
  7. //
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program. If not, see <http://gnu.org/licenses/gpl-2.0.txt>
  15. // This file needs to compile in C and C++ context, so deliberately broken out.
  16. #ifndef RPI_GPIOBITS_H
  17. #define RPI_GPIOBITS_H
  18. #include <stdint.h>
  19. #ifdef ENABLE_WIDE_GPIO_COMPUTE_MODULE
  20. typedef uint64_t gpio_bits_t;
  21. #else
  22. typedef uint32_t gpio_bits_t;
  23. #endif
  24. #endif