13 lines
264 B
C++
13 lines
264 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
typedef volatile uint8_t reg8;
|
|
typedef volatile uint16_t reg16;
|
|
typedef volatile uint32_t reg32;
|
|
|
|
static_assert((sizeof (reg8)) == 1);
|
|
static_assert((sizeof (reg16)) == 2);
|
|
static_assert((sizeof (reg32)) == 4);
|