GY-63_MS5611/libraries/integer24/integer24.h
2023-06-27 18:28:02 +02:00

41 lines
647 B
C

#pragma once
//
// FILE: integer24.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// DATE: 2023-06-22
// PURPOSE: Arduino library for the uint24_t and int24_t
// URL: https://github.com/RobTillaart/integer24
//
// uses a simple typedef
// only tested on AVR for now
#define INTEGER24_LIB_VERSION (F("0.1.1"))
#include "Arduino.h"
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR)
// supports a true 3 byte data type
typedef __uint24 uint24_t;
typedef __int24 int24_t;
#else
// use 32 bits (4 byte) for now
typedef uint32_t uint24_t;
typedef int32_t int24_t;
#endif
// -- END OF FILE --