feat(Puya-PY32F040): add OTA dual-project codegen template

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 18:56:19 +08:00
co-authored by Cursor
commit 62eb0199ed
498 changed files with 329164 additions and 0 deletions
+14
View File
@@ -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 */