//*****************************************************************************
static unsigned long pulStack[64];
+#define CRC_CHECKSUM 0xeffffcbf
+
//*****************************************************************************
//
// The vector table. Note that the proper constructs must be placed on this to
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
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