hal_types.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * TamaLIB - A hardware agnostic tama P1 emulation library
  3. *
  4. * Copyright (C) 2021 Jean-Christophe Rona <jc@rona.fr>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. #ifndef _HAL_TYPES_H_
  21. #define _HAL_TYPES_H_
  22. #include <furi.h>
  23. typedef bool bool_t;
  24. typedef uint8_t u4_t;
  25. typedef uint8_t u5_t;
  26. typedef uint8_t u8_t;
  27. typedef uint16_t u12_t;
  28. typedef uint16_t u13_t;
  29. typedef uint32_t u32_t;
  30. typedef uint32_t
  31. timestamp_t; // WARNING: Must be an unsigned type to properly handle wrapping (u32 wraps in around 1h11m when expressed in us)
  32. #endif /* _HAL_TYPES_H_ */