22#ifndef BOARDS_ATTINYX5_HH
23#define BOARDS_ATTINYX5_HH
26#include "../defines.h"
31#define BOARDS_ATTINYX5
49 inline static void init() {}
226 IDLE = SLEEP_MODE_IDLE,
258#define ANALOG_COMP_vect ANA_COMP_vect
259#define EE_READY_vect EE_RDY_vect
263 void ADC_vect(
void) SIGNAL_HANDLER;
264 void ANALOG_COMP_vect(
void) SIGNAL_HANDLER;
265 void INT0_vect(
void) SIGNAL_HANDLER;
266 void PCINT0_vect(
void) SIGNAL_HANDLER;
267 void TIMER0_COMPA_vect(
void) SIGNAL_HANDLER;
268 void TIMER0_COMPB_vect(
void) SIGNAL_HANDLER;
269 void TIMER0_OVF_vect(
void) SIGNAL_HANDLER;
270 void TIMER1_COMPA_vect(
void) SIGNAL_HANDLER;
271 void TIMER1_COMPB_vect(
void) SIGNAL_HANDLER;
272 void TIMER1_OVF_vect(
void) SIGNAL_HANDLER;
273 void WDT_vect(
void) SIGNAL_HANDLER;
274 void USI_START_vect(
void) SIGNAL_HANDLER;
275 void USI_OVF_vect(
void) SIGNAL_HANDLER;
276 void EE_READY_vect(
void) SIGNAL_HANDLER;
Defines all types and constants specific to support ATtinyX5 MCU targets.
PWMPin
Defines all digital output pins of ATtinyX5, capable of PWM output.
Port
Defines all available ports of ATtinyX5.
static void init()
Performs special initialization for ATtinyX5, actually nothing at all.
DigitalPin
Defines all available digital input/output pins of ATtinyX5, with additional pin imaginary numbering ...
@ LED
Shortcut for LED pin, arbitrarily chosen to be D0.
AnalogClock
Defines available clocks of ATtinyX5, used for analog input.
AnalogPin
Defines all available analog input pins of ATtinyX5, with reference to ATtinyX5 pins.
@ TEMP
Temperature sensor.
@ BANDGAP
Bandgap reference.
InterruptPin
Defines all digital output pins of ATtinyX5, usable as pin change interrupt (PCI) pins.
USART
Defines all USART modules of ATtinyX5, actually none at all.
Timer
Defines all timers available for ATtinyX5.
ExternalInterruptPin
Defines all digital output pins of ATtinyX5, usable as direct external interrupt pins.
SleepMode
Defines all available sleep modes for ATmega328P.
@ EXTENDED_STANDBY
This mode is exactly the same POWER_SAVE.
@ ADC_NOISE_REDUCTION
In this mode, CPU is stopped but other peripherals and interrupts work normally, except IO.
@ POWER_DOWN
In this mode, everything is stopped (including oscillator) but external interrupts,...
@ IDLE
In this mode, CPU is stopped but all other peripherals and interrupts work normally.
@ STANDBY
This mode is exactly the same POWER_DOWN.
@ POWER_SAVE
This mode is exactly the same POWER_DOWN.
AnalogReference
Defines available voltage references of ATtinyX5, used for analog input.
@ INTERNAL_2_56V
Voltage reference is internal 2.56V reference, without external bypass capacitor, disconnected from P...
@ INTERNAL_1_1V
Voltage reference is internal 1.1V reference, generated from the internal bandgap reference.
@ AREF
Voltage reference is given by the AREF (PB0) pin.
@ AVCC
Voltage reference is given by the Vcc pin.
@ INTERNAL_2_56V_BYPASS_CAP
Voltage reference is internal 2.56V reference, with external bypass capacitor at PB0 (AREF).