feat(Puya-PY32F040): add OTA dual-project codegen template
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef __CRC32_H
|
||||
#define __CRC32_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* CRC-32/IEEE 802.3: poly 0x04C11DB7, init 0xFFFFFFFF, final XOR 0xFFFFFFFF
|
||||
* APP 与 Bootloader 共用同一实现,保证固件校验一致 */
|
||||
|
||||
uint32_t crc32_init(void);
|
||||
uint32_t crc32_update(uint32_t crc, const uint8_t *data, uint32_t len);
|
||||
uint32_t crc32_final(uint32_t crc);
|
||||
uint32_t crc32_compute(const uint8_t *data, uint32_t len);
|
||||
|
||||
#endif /* __CRC32_H */
|
||||
Reference in New Issue
Block a user