FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
empty.h
Go to the documentation of this file.
1// Copyright 2016-2023 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
16
25#ifndef BOARDS_EMPTY_HH
26#define BOARDS_EMPTY_HH
27
28#include "io.h"
29#include <avr/sleep.h>
30
37namespace board
38{
43 inline static void init() {}
44
48 enum class Port : uint8_t
49 {
50 };
51
55 enum class DigitalPin : uint8_t
56 {
57 };
58
62 enum class AnalogClock : uint8_t
63 {
64 };
65
69 enum class AnalogReference : uint8_t
70 {
71 };
72
76 enum class AnalogPin : uint8_t
77 {
78 };
79
83 enum class PWMPin : uint8_t
84 {
85 };
86
90 enum class ExternalInterruptPin : uint8_t
91 {
92 };
93
97 enum class InterruptPin : uint8_t
98 {
99 };
100
104 enum class USART : uint8_t
105 {
106 };
107
111 enum class Timer : uint8_t
112 {
113 };
114
118 enum class SleepMode : uint8_t
119 {
120 };
121};
122
123#endif /* BOARDS_EMPTY_HH */
Defines all types and constants specific to support a specific MCU target.
Definition: empty.h:38
PWMPin
Defines all digital output pins of target MCU, capable of PWM output.
Definition: empty.h:84
Port
Defines all available ports of the target MCU.
Definition: empty.h:49
static void init()
Performs special initialization for the target MCU.
Definition: empty.h:43
DigitalPin
Defines all available digital input/output pins of the target MCU.
Definition: empty.h:56
AnalogClock
Defines available clocks of the target MCU, used for analog input.
Definition: empty.h:63
AnalogPin
Defines all available analog input pins of the target MCU.
Definition: empty.h:77
InterruptPin
Defines all digital output pins of target MCU, usable as pin change interrupt (PCI) pins.
Definition: empty.h:98
USART
Defines all USART modules of target MCU.
Definition: empty.h:105
Timer
Defines all timers available for target MCU.
Definition: empty.h:112
ExternalInterruptPin
Defines all digital output pins of target MCU, usable as direct external interrupt pins.
Definition: empty.h:91
SleepMode
Defines all available sleep modes for target MCU.
Definition: empty.h:119
AnalogReference
Defines available voltage references of the target MCU, used for analog input.
Definition: empty.h:70