15#ifndef BOARDS_BOARD_HH
16#define BOARDS_BOARD_HH
21#if defined(ARDUINO_MEGA)
23#elif defined(ARDUINO_UNO) || defined(BREADBOARD_ATMEGA328P)
25#elif defined(ARDUINO_LEONARDO)
27#elif defined(ARDUINO_NANO)
28#define HAS_8_ANALOG_INPUTS
32#elif defined(BREADBOARD_ATTINYX4)
34#elif defined(BREADBOARD_ATTINYX5)
36#elif defined(BREADBOARD_ATMEGAXX4P)
37#include "atmega_xx4.h"
40#error "board.h: board not supported"
44static constexpr const uint32_t ONE_MHZ = 1'000'000UL;
45static constexpr const uint32_t ONE_SECOND = 1'000'000UL;
46static constexpr const uint32_t INST_PER_US = F_CPU / ONE_MHZ;
47static constexpr const uint16_t ONE_MILLI_16 = 1000U;
48static constexpr const uint32_t ONE_MILLI_32 = 1000UL;