Skip to content

Commit 8ed2732

Browse files
author
James Foster
committed
Move EEPROM_SIZE macro to misc/default.yml.
1 parent 524d352 commit 8ed2732

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

cpp/arduino/avr/iomxx0_1.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,6 @@
351351
Last two letters: EEAR address. */
352352
#define __EEPROM_REG_LOCATIONS__ 1F2021
353353

354-
/* According to https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf,
355-
* the Atmel ATmega640/V-1280/V-1281/V-2560/V-2561/V microcontrollers each have
356-
* 4Kbytes of EEPROM and since this file is included from things that seem
357-
* to match that description, it would be helpful to know that EEPROM is
358-
* available and know its size. This macro is defined for many other models,
359-
* so we will add it here.
360-
*
361-
* See https://github.com/Arduino-CI/arduino_ci/issues/166#issuecomment-703904394.
362-
*/
363-
#define EEPROM_SIZE (4096)
364-
365354
#define GTCCR _SFR_IO8(0x23)
366355
#define TSM 7
367356
#define PSRASY 1

misc/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ platforms:
100100
features:
101101
defines:
102102
- __AVR_ATmega2560__
103+
- EEPROM_SIZE=(4096)
103104
warnings:
104105
flags:
105106
cplayClassic:

0 commit comments

Comments
 (0)