From 2c6399f0cfe4e01929ded3ddbcde2fc57be75b51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Fri, 14 Jan 2011 02:27:59 +0000 Subject: [PATCH 1/1] Fix CRC cast compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- src/boards/lpc1768/startup.c | 4 +++- tools/lpcrc/lpcrc.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/boards/lpc1768/startup.c b/src/boards/lpc1768/startup.c index 66eab26..0888b27 100644 --- a/src/boards/lpc1768/startup.c +++ b/src/boards/lpc1768/startup.c @@ -95,6 +95,8 @@ extern int main(void); //***************************************************************************** static unsigned long pulStack[64]; +#define CRC_CHECKSUM 0xeffffcbf + //***************************************************************************** // // The vector table. Note that the proper constructs must be placed on this to @@ -112,7 +114,7 @@ void (* const g_pfnVectors[])(void) = MemManage_Handler, // The MPU fault handler BusFault_Handler, // The bus fault handler UsageFault_Handler, // The usage fault handler - 0xeffffcbf, // Interrupt CRC + (void *) CRC_CHECKSUM, // Interrupt CRC 0, // Reserved 0, // Reserved 0, // Reserved diff --git a/tools/lpcrc/lpcrc.sh b/tools/lpcrc/lpcrc.sh index ee36dd5..1bff216 100755 --- a/tools/lpcrc/lpcrc.sh +++ b/tools/lpcrc/lpcrc.sh @@ -11,7 +11,7 @@ echo "$crcoutput" | grep -q differs if [ $? -eq 0 ] ; then crc=$(echo "$crcoutput" | grep new_crc | cut -d' ' -f2) sed -i -e \ - 's/^\(\s\+0x\)[a-f0-9]\{8\}\(,\s\+\/\/\ Interrupt CRC\)/\1'$crc'\2/g' \ + 's/^\(#define CRC_CHECKSUM 0x\)[a-f0-9]\{8\}$/\1'$crc'/g' \ $source make crc fi -- 1.7.10.4