mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 18:00:48 +02:00
Getting this to work required fixing a small issue in `lfs2_util.h`, which has been submitted upstream. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
12 lines
274 B
C
12 lines
274 B
C
#ifndef LFS2_DEFINES_H
|
|
#define LFS2_DEFINES_H
|
|
|
|
#include "py/mpconfig.h"
|
|
|
|
#if MICROPY_PY_DEFLATE
|
|
// We reuse the CRC32 implementation from uzlib to save a few bytes
|
|
#include "lib/uzlib/uzlib.h"
|
|
#define LFS2_CRC(crc, buffer, size) uzlib_crc32(buffer, size, crc)
|
|
#endif
|
|
|
|
#endif |