22#ifndef BOARDS_ATTINYX4_HH
23#define BOARDS_ATTINYX4_HH
27#include "../defines.h"
32#define BOARDS_ATTINYX4
50 inline static void init() {}
236 #define SLEEP_MODE_PWR_SAVE (bits::BV8(SM0, SM1))
249 IDLE = SLEEP_MODE_IDLE,
285#define ANALOG_COMP_vect ANA_COMP_vect
286#define TIMER0_OVF_vect TIM0_OVF_vect
287#define TIMER0_COMPA_vect TIM0_COMPA_vect
288#define TIMER0_COMPB_vect TIM0_COMPB_vect
289#define TIMER1_OVF_vect TIM1_OVF_vect
290#define TIMER1_COMPA_vect TIM1_COMPA_vect
291#define TIMER1_COMPB_vect TIM1_COMPB_vect
292#define EE_READY_vect EE_RDY_vect
296 void ADC_vect(
void) SIGNAL_HANDLER;
297 void ANALOG_COMP_vect(
void) SIGNAL_HANDLER;
298 void INT0_vect(
void) SIGNAL_HANDLER;
299 void PCINT0_vect(
void) SIGNAL_HANDLER;
300 void PCINT1_vect(
void) SIGNAL_HANDLER;
301 void TIMER0_COMPA_vect(
void) SIGNAL_HANDLER;
302 void TIMER0_COMPB_vect(
void) SIGNAL_HANDLER;
303 void TIMER0_OVF_vect(
void) SIGNAL_HANDLER;
304 void TIMER1_COMPA_vect(
void) SIGNAL_HANDLER;
305 void TIMER1_COMPB_vect(
void) SIGNAL_HANDLER;
306 void TIMER1_OVF_vect(
void) SIGNAL_HANDLER;
307 void TIMER1_CAPT_vect(
void) SIGNAL_HANDLER;
308 void WDT_vect(
void) SIGNAL_HANDLER;
309 void USI_START_vect(
void) SIGNAL_HANDLER;
310 void USI_OVF_vect(
void) SIGNAL_HANDLER;
311 void EE_READY_vect(
void) SIGNAL_HANDLER;
Defines all types and constants specific to support ATtinyX4 MCU targets.
PWMPin
Defines all digital output pins of ATtinyX4, capable of PWM output.
Port
Defines all available ports of ATtinyX4.
static void init()
Performs special initialization for ATtinyX4, actually nothing at all.
DigitalPin
Defines all available digital input/output pins of ATtinyX4, with additional pin imaginary numbering ...
@ LED
Shortcut for LED pin, arbitrarily chosen to be D7.
AnalogClock
Defines available clocks of ATtinyX4, used for analog input.
AnalogPin
Defines all available analog input pins of ATtinyX4, with reference to AVR ATtinyX4 pins.
@ TEMP
Temperature sensor.
@ BANDGAP
Bandgap reference.
InterruptPin
Defines all digital output pins of ATtinyX4, usable as pin change interrupt (PCI) pins.
USART
Defines all USART modules of ATtinyX4, actually none at all.
Timer
Defines all timers available for ATtinyX4.
ExternalInterruptPin
Defines all digital output pins of ATtinyX4, 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 similar to POWER_DOWN, except Timer2 is still running if enabled.
AnalogReference
Defines available voltage references of ATtinyX4, used for analog input.
@ INTERNAL_1_1V
Voltage reference is internal 1.1V reference, generated from the internal bandgap reference.
@ AREF
Voltage reference is given by the AREF (PA0) pin.
@ AVCC
Voltage reference is given by the Vcc pin.