From d735416c463a8f33666edc6a37eaf86fa5a77f85 Mon Sep 17 00:00:00 2001 From: heck Date: Sat, 21 Sep 2024 09:12:24 +0200 Subject: [PATCH] Add types.hh --- src/types.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/types.hh diff --git a/src/types.hh b/src/types.hh new file mode 100644 index 0000000..2e7f7d0 --- /dev/null +++ b/src/types.hh @@ -0,0 +1,30 @@ +#ifndef HECK_DAISY_TYPES_HH +#define HECK_DAISY_TYPES_HH + +#include +#include "daisy_seed.h" +#include "daisysp.h" + +namespace Heck { + + // Types + using u8 = uint8_t; + using u16 = uint16_t; + using u32 = uint32_t; + using u64 = uint64_t; + + using i8 = int8_t; + using i16 = int16_t; + using i32 = int32_t; + using i64 = int64_t; + + using f32 = float; + using f64 = double; + + // namespace aliases + namespace ld = daisy; + namespace dsp = daisysp; +} // namespace Heck + + +#endif \ No newline at end of file