Skip to content

Commit 9f98001

Browse files
Merge pull request #6 from TimerOverflow/20190114
20190114
2 parents 9ac9268 + fe17538 commit 9f98001

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

AvrEeprom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <ina90.h>
88
#include "AvrEeprom.h"
99
/*********************************************************************************/
10-
#if(AVR_EEPROM_REVISION_DATE != 20180921)
10+
#if(AVR_EEPROM_REVISION_DATE != 20190114)
1111
#error wrong include file. (AvrEeprom.h)
1212
#endif
1313
/*********************************************************************************/

AvrEeprom.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
#ifndef __AVR_EEPROM_H__
88
#define __AVR_EEPROM_H__
99
/*********************************************************************************/
10-
#define AVR_EEPROM_REVISION_DATE 20180921
10+
#define AVR_EEPROM_REVISION_DATE 20190114
1111
/*********************************************************************************/
1212
/** REVISION HISTORY **/
1313
/*
14+
2019. 01. 14. - CPU타입 __AVR_ATMEGA2560__ 추가.
15+
Jeong Hyun Gu
16+
1417
2018. 09. 21. - DoEepWriteControl() 함수에서 Length 보다 1바이트 더 쓰던 현상 수정.
1518
Jeong Hyun Gu
1619
@@ -36,7 +39,7 @@
3639
#define false 0
3740

3841

39-
#define __AVR_ATMEGA128__
42+
#define __AVR_ATMEGA2560__
4043

4144

4245
#ifdef __AVR_ATMEGA8__
@@ -69,6 +72,12 @@
6972
/* Endurance: 100,000 Write/Erase */
7073
#endif
7174

75+
#ifdef __AVR_ATMEGA2560__
76+
#include <iom2560.h>
77+
#define EEPROM_SIZE 4096
78+
/* Endurance: 100,000 Write/Erase */
79+
#endif
80+
7281
/*********************************************************************************/
7382
/**Enum**/
7483

0 commit comments

Comments
 (0)