FastArduino - ATtinyX5 Support v1.10
C++ library to build fast but small Arduino/AVR projects
|
ATtinyX5 (25, 45, 85) specific features and pins. More...
#include "io.h"
#include "../defines.h"
#include <avr/sleep.h>
Go to the source code of this file.
Namespaces | |
namespace | board |
Defines all types and constants specific to support ATtinyX5 MCU targets. | |
Enumerations | |
enum class | board::Port : uint8_t { board::PORT_B = 0 , NONE = UINT8_MAX } |
Defines all available ports of ATtinyX5. More... | |
enum class | board::DigitalPin : uint8_t { board::D0_PB0 = 0 , board::D1_PB1 , board::D2_PB2 , board::D3_PB3 , board::D4_PB4 , board::LED = D0_PB0 , NONE = UINT8_MAX } |
Defines all available digital input/output pins of ATtinyX5, with additional pin imaginary numbering (as for an Arduino board). More... | |
enum class | board::AnalogClock : uint8_t { MAX_FREQ_50KHz = 0 , MAX_FREQ_100KHz , MAX_FREQ_200KHz , MAX_FREQ_500KHz , MAX_FREQ_1MHz } |
Defines available clocks of ATtinyX5, used for analog input. More... | |
enum class | board::AnalogReference : uint8_t { board::AREF = 0 , board::AVCC , board::INTERNAL_1_1V , board::INTERNAL_2_56V , board::INTERNAL_2_56V_BYPASS_CAP } |
Defines available voltage references of ATtinyX5, used for analog input. More... | |
enum class | board::AnalogPin : uint8_t { board::A1 = 0 , board::A2 , board::A3 , board::BANDGAP , board::GND , board::TEMP , NONE = UINT8_MAX } |
Defines all available analog input pins of ATtinyX5, with reference to ATtinyX5 pins. More... | |
enum class | board::PWMPin : uint8_t { D0_PB0_OC0A = 0 , D1_PB1_OC0B , NONE = UINT8_MAX } |
Defines all digital output pins of ATtinyX5, capable of PWM output. More... | |
enum class | board::ExternalInterruptPin : uint8_t { D2_PB2_EXT0 = 0 } |
Defines all digital output pins of ATtinyX5, usable as direct external interrupt pins. More... | |
enum class | board::InterruptPin : uint8_t { D0_PB0_PCI0 = uint8_t(DigitalPin::D0_PB0) , D1_PB1_PCI0 = uint8_t(DigitalPin::D1_PB1) , D2_PB2_PCI0 = uint8_t(DigitalPin::D2_PB2) , D3_PB3_PCI0 = uint8_t(DigitalPin::D3_PB3) , D4_PB4_PCI0 = uint8_t(DigitalPin::D4_PB4) } |
Defines all digital output pins of ATtinyX5, usable as pin change interrupt (PCI) pins. More... | |
enum class | board::USART : uint8_t |
Defines all USART modules of ATtinyX5, actually none at all. More... | |
enum class | board::Timer : uint8_t { board::TIMER0 = 0 , board::TIMER1 = 1 } |
Defines all timers available for ATtinyX5. More... | |
enum class | board::SleepMode : uint8_t { board::IDLE = SLEEP_MODE_IDLE , board::ADC_NOISE_REDUCTION = SLEEP_MODE_ADC , board::POWER_DOWN = SLEEP_MODE_PWR_DOWN , board::POWER_SAVE = SLEEP_MODE_PWR_DOWN , board::STANDBY = SLEEP_MODE_PWR_DOWN , board::EXTENDED_STANDBY = SLEEP_MODE_PWR_DOWN } |
Defines all available sleep modes for ATmega328P. More... | |
Functions | |
static void | board::init () |
Performs special initialization for ATtinyX5, actually nothing at all. More... | |
ATtinyX5 (25, 45, 85) specific features and pins.
Definition in file attiny_x5.h.