From 6372954014a79d1c292a58588ebc01b2c8de2935 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 18 Nov 2009 11:15:27 +0000 Subject: [PATCH] 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 --- bertos/algo/crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.25.1