Skip to content

Commit be3a946

Browse files
Merge pull request #3 from TimerOverflow/20180502
20180502
2 parents 50859ad + 898c16a commit be3a946

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

crc16.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
/*********************************************************************************/
77
#include "crc16.h"
88
/*********************************************************************************/
9-
#if(AVR_CRC16_REVISION_DATE != 20161108)
9+
#if(AVR_CRC16_REVISION_DATE != 20180502)
1010
#error wrong include file. (crc16.h)
1111
#endif
1212
/*********************************************************************************/
1313
/** Global variable **/
1414

1515

1616
/* CRC16 Table High byte */
17-
const unsigned char __flash CRC16Hi[] =
17+
const unsigned char CRC16Hi[] =
1818
{
1919
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
2020
0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
@@ -51,7 +51,7 @@ const unsigned char __flash CRC16Hi[] =
5151
};
5252

5353
/* CRC16 Table Low byte */
54-
const unsigned char __flash CRC16Lo[] =
54+
const unsigned char CRC16Lo[] =
5555
{
5656
0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2,
5757
0xC6, 0x06, 0x07, 0xC7, 0x05, 0xC5, 0xC4, 0x04,

crc16.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
#ifndef __CRC16_H__
88
#define __CRC16_H__
99
/*********************************************************************************/
10-
#define AVR_CRC16_REVISION_DATE 20161108
10+
#define AVR_CRC16_REVISION_DATE 20180502
1111
/*********************************************************************************/
1212
/** REVISION HISTORY **/
1313
/*
14+
2018. 05. 02. - CRC16 테이블 변수 타입 변경.
15+
Jeong Hyun Gu
16+
1417
2016. 11. 08. - revision valid check 추가.
1518
Jung Hyun Gu
1619

0 commit comments

Comments
 (0)