添加普冉 PY32F040 OTA 双工程代码生成模板

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 18:59:56 +08:00
co-authored by Cursor
commit 331864dc64
496 changed files with 329040 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 */