15 lines
334 B
C++

#pragma once
#include <cstddef>
#include <cstdint>
typedef volatile uint8_t reg8;
typedef volatile uint16_t reg16;
typedef volatile uint32_t reg32;
typedef volatile float reg32f;
static_assert((sizeof (reg8)) == 1);
static_assert((sizeof (reg16)) == 2);
static_assert((sizeof (reg32)) == 4);
static_assert((sizeof (reg32f)) == 4);