moved libs to the lib directory

This commit is contained in:
2025-11-13 18:40:06 +03:00
parent 4d1f7fdbe9
commit b80ad585da
634 changed files with 3 additions and 2 deletions

31
lib/x502/fast_crc_cfg.h Normal file
View File

@ -0,0 +1,31 @@
/*================================================================================================*
* Конфигурация библиотеки FAST_CRC
*================================================================================================*/
#ifndef FAST_CRC_CFG_H_
#define FAST_CRC_CFG_H_
#include "lcard_pstdint.h"
/*================================================================================================*/
/* Типы */
#define FASTCRC_U8_TYPE uint8_t
#define FASTCRC_U16_TYPE uint16_t
#define FASTCRC_U32_TYPE uint32_t
#define FASTCRC_SIZE_TYPE size_t
/* Начальные значения CRC */
#define CRC16_START_VAL 0
#define CRC32_START_VAL 0
/*================================================================================================*/
/*================================================================================================*/
/* Разрешение компиляции отдельных функций */
#define FASTCRC_CRC16_ADD8 1 /* добавление в CRC16 байта */
#define FASTCRC_CRC16_ADD16 1 /* добавление в CRC16 16-битного слова */
#define FASTCRC_CRC16_BLOCK8 1 /* Вычисление CRC16 блока байтов */
#define FASTCRC_CRC16_BLOCK16 1 /* Вычисление CRC16 блока 16-битных слов */
#define FASTCRC_CRC32_BLOCK8 1 /* Вычисление CRC32 блока байтов */
/*================================================================================================*/
#endif /* FAST_CRC_CFG_H_ */