ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
Config.h
Go to the documentation of this file.
1
5#ifndef ATMEGA2560_DEFINITIONS_CONFIG_H
6#define ATMEGA2560_DEFINITIONS_CONFIG_H
7
8#define MCU_ATMEGA2560 1
9#define MCU_HAS_GPIO 1
10#define MCU_HAS_ADC 1
11#define MCU_HAS_PWM 1
12#define MCU_HAS_TIMER0 1
13#define MCU_HAS_TIMER1 1
14#define MCU_HAS_TIMER2 1
15#define MCU_HAS_TIMER3 1
16#define MCU_HAS_TIMER4 1
17#define MCU_HAS_TIMER5 1
18#define MCU_HAS_USART 1
19#define MCU_HAS_SPI 1
20#define MCU_HAS_TWI 1
21#define MCU_HAS_ANALOG_COMPARATOR 1
22#define MCU_HAS_WATCHDOG 1
23#define MCU_HAS_EXTERNAL_INTERRUPTS 1
24#define MCU_HAS_PIN_CHANGE_INTERRUPTS 1
25#define MCU_HAS_JTAG 1
26#define MCU_HAS_EXTERNAL_MEMORY_INTERFACE 1
27#define MCU_HAS_SELF_PROGRAMMABLE_FLASH 1
28
29#if (defined(MCU_PACKAGE_TQFP100) + defined(MCU_PACKAGE_CBGA100)) > 1
30#error "Select only one MCU package."
31#endif
32#if (defined(MCU_GRADE_INDUSTRIAL_85C) + defined(MCU_GRADE_LOW_VOLTAGE)) > 1
33#error "Select only one MCU grade."
34#endif
35#if defined(MCU_REQUIRE_PACKAGE) && !defined(MCU_PACKAGE_TQFP100) && !defined(MCU_PACKAGE_CBGA100)
36#error "Select a 100-terminal MCU package."
37#endif
38#if defined(MCU_REQUIRE_GRADE) && !defined(MCU_GRADE_INDUSTRIAL_85C) && !defined(MCU_GRADE_LOW_VOLTAGE)
39#error "Select an MCU operating grade."
40#endif
41#endif