22#ifndef BOARDS_ATMEGA_XX4_HH
23#define BOARDS_ATMEGA_XX4_HH
26#include "../defines.h"
31#define BOARDS_ATMEGAXX4
49 inline static void init() {}
227#ifdef __AVR_ATmega1284P__
323#ifdef __AVR_ATmega1284P__
339 IDLE = SLEEP_MODE_IDLE,
379 void ADC_vect(
void) SIGNAL_HANDLER;
380 void ANALOG_COMP_vect(
void) SIGNAL_HANDLER;
381 void INT0_vect(
void) SIGNAL_HANDLER;
382 void INT1_vect(
void) SIGNAL_HANDLER;
383 void INT2_vect(
void) SIGNAL_HANDLER;
384 void PCINT0_vect(
void) SIGNAL_HANDLER;
385 void PCINT1_vect(
void) SIGNAL_HANDLER;
386 void PCINT2_vect(
void) SIGNAL_HANDLER;
387 void PCINT3_vect(
void) SIGNAL_HANDLER;
388 void SPI_STC_vect(
void) SIGNAL_HANDLER;
389 void TIMER0_COMPA_vect(
void) SIGNAL_HANDLER;
390 void TIMER0_COMPB_vect(
void) SIGNAL_HANDLER;
391 void TIMER0_OVF_vect(
void) SIGNAL_HANDLER;
392 void TIMER1_COMPA_vect(
void) SIGNAL_HANDLER;
393 void TIMER1_COMPB_vect(
void) SIGNAL_HANDLER;
394 void TIMER1_OVF_vect(
void) SIGNAL_HANDLER;
395 void TIMER1_CAPT_vect(
void) SIGNAL_HANDLER;
396 void TIMER2_COMPA_vect(
void) SIGNAL_HANDLER;
397 void TIMER2_COMPB_vect(
void) SIGNAL_HANDLER;
398 void TIMER2_OVF_vect(
void) SIGNAL_HANDLER;
399 void TWI_vect(
void) SIGNAL_HANDLER;
400 void WDT_vect(
void) SIGNAL_HANDLER;
401 void USART0_UDRE_vect(
void) SIGNAL_HANDLER;
402 void USART0_RX_vect(
void) SIGNAL_HANDLER;
403 void USART0_TX_vect(
void) SIGNAL_HANDLER;
404 void USART1_UDRE_vect(
void) SIGNAL_HANDLER;
405 void USART1_RX_vect(
void) SIGNAL_HANDLER;
406 void USART1_TX_vect(
void) SIGNAL_HANDLER;
407 void EE_READY_vect(
void) SIGNAL_HANDLER;
Defines all types and constants specific to support Arduino MEGA board (ATmega644 MCU target).
PWMPin
Defines all digital output pins of ATmega644, capable of PWM output.
Port
Defines all available ports of ATmega644.
static void init()
Performs special initialization for ATmega644, actually nothing at all.
DigitalPin
Defines all available digital input/output pins of ATmega644, with reference to Arduino MEGA pins.
@ D16_PC0
Pin PC0 (PCINT16/SCL)
@ D27_PD3
Pin PD3 (PCINT27/TX1/INT1)
@ D15_PB7
Pin PB7 (PCINT15/SCK)
@ D0_PA0
Pin PA0 (ADC0/PCINT0)
@ D2_PA2
Pin PA2 (ADC2/PCINT2)
@ D19_PC3
Pin PC3 (PCINT19)
@ D3_PA3
Pin PA3 (ADC3/PCINT3)
@ D31_PD7
Pin PD7 (PCINT31/OC2A)
@ D11_PB3
Pin PB3 (PCINT11/OC0A)
@ D29_PD5
Pin PD5 (PCINT29/OC1A)
@ D18_PC2
Pin PC2 (PCINT18)
@ LED
Shortcut for LED pin (PB0 on pin 1 for ATmega644 PDIP)
@ D20_PC4
Pin PC4 (PCINT20)
@ D1_PA1
Pin PA1 (ADC1/PCINT1)
@ D7_PA7
Pin PA7 (ADC7/PCINT7)
@ D24_PD0
Pin PD0 (PCINT24/RX0)
@ D12_PB4
Pin PB4 (PCINT12/OC0B/SS)
@ D23_PC7
Pin PC7 (PCINT23)
@ D14_PB6
Pin PB6 (PCINT14/MISO)
@ D21_PC5
Pin PC5 (PCINT21)
@ D30_PD6
Pin PD6 (PCINT30/OC2B/ICP)
@ D28_PD4
Pin PD4 (PCINT28/OC1B)
@ D4_PA4
Pin PA4 (ADC4/PCINT4)
@ D26_PD2
Pin PD2 (PCINT26/RX1/INT0)
@ D5_PA5
Pin PA5 (ADC5/PCINT5)
@ D25_PD1
Pin PD1 (PCINT25/TX0)
@ D22_PC6
Pin PC6 (PCINT22)
@ D10_PB2
Pin PB2 (PCINT10/INT2)
@ D17_PC1
Pin PC1 (PCINT17/SDA)
@ D6_PA6
Pin PA6 (ADC6/PCINT6)
@ D13_PB5
Pin PB5 (PCINT13/MOSI)
AnalogClock
Defines available clocks of ATmega644, used for analog input.
AnalogPin
Defines all available analog input pins of ATmega644, with reference to Arduino MEGA pins.
@ BANDGAP
Bandgap reference.
InterruptPin
Defines all digital output pins of ATmega644, usable as pin change interrupt (PCI) pins.
USART
Defines all USART modules of ATmega644.
@ USART1
USART1 is connected to pins D26_PD2 (RX1) and D27_PD3 (TX1).
@ USART0
USART0 is connected to pins D24_PD0 (RX0) and D25_PD1 (TX0).
Timer
Defines all timers available for ATmega644.
ExternalInterruptPin
Defines all digital output pins of ATmega644, usable as direct external interrupt pins.
SleepMode
Defines all available sleep modes for ATmega644.
@ EXTENDED_STANDBY
This mode is similar to POWER_SAVE, except the oscillator is kept running, hence waking up from this ...
@ 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 similar to POWER_DOWN, except the oscillator is kept running, hence waking up from this ...
@ POWER_SAVE
This mode is similar to POWER_DOWN, except Timer2 is still running if enabled.
AnalogReference
Defines available voltage references of ATmega644, used for analog input.
@ INTERNAL_2_56V
Voltage reference is internal 2.56V reference, generated from the internal bandgap reference.
@ INTERNAL_1_1V
Voltage reference is internal 1.1V reference, generated from the internal bandgap reference.
@ AREF
Voltage reference is given by the AREF pin.
@ AVCC
Voltage reference is given by the AVcc pin.