From: asterix Date: Wed, 18 Nov 2009 11:15:27 +0000 (+0000) Subject: Move crc table in ram when we using bootloader. X-Git-Tag: 2.4.0~78 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6372954014a79d1c292a58588ebc01b2c8de2935;p=bertos.git Move crc table in ram when we using bootloader. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3119 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/algo/crc.c b/bertos/algo/crc.c index 49ede8e8..c7444740 100644 --- a/bertos/algo/crc.c +++ b/bertos/algo/crc.c @@ -41,7 +41,7 @@ /** * crctab calculated by Mark G. Mendel, Network Systems Corporation */ -#if CPU_HARVARD && !(ARCH & defined(ARCH_BOOT)) +#if CPU_HARVARD && !(defined(ARCH_BOOT) && (ARCH & ARCH_BOOT)) #define CRC_TABLE const uint16_t PROGMEM crc16tab[256] #else #define CRC_TABLE const uint16_t crc16tab[256]