stm32f4_vrom: Do checksum on copy of block.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 27 Sep 2015 00:03:20 +0000 (00:03 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 27 Sep 2015 00:03:20 +0000 (00:03 +0000)
commita646b0b8e8af64ebd504647a7e69444d4aa65117
tree6245fead1de3f1e3e40becb6bba14ff0b4133774
parent1a539914d8af0c6bc5c495049e8638b7ce37a4a6
stm32f4_vrom: Do checksum on copy of block.

Store a temporary copy of the block on the stack to do our checksumming
on.  This allows us to zero out the CRC32 field.

(There is a way to include the CRC32 field in the checksum itself, but
haven't figured out the mathematics needed yet.)

git-svn-id: https://svn.code.sf.net/p/freetel/code@2400 01035d8c-6547-0410-b346-abe4f91aad63
codec2-dev/stm32/src/stm32f4_vrom.c