fdb_cfg.h 971 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2020, Armink, <armink.ztl@gmail.com>
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief configuration file
  9. */
  10. #ifndef _FDB_CFG_H_
  11. #define _FDB_CFG_H_
  12. /* using KVDB feature */
  13. #define FDB_USING_KVDB
  14. #ifdef FDB_USING_KVDB
  15. /* Auto update KV to latest default when current KVDB version number is changed. @see fdb_kvdb.ver_num */
  16. /* #define FDB_KV_AUTO_UPDATE */
  17. #endif
  18. /* using TSDB (Time series database) feature */
  19. #define FDB_USING_TSDB
  20. /* the flash write granularity, unit: bit
  21. * only support 1(nor flash)/ 8(stm32f2/f4)/ 32(stm32f1) */
  22. #define FDB_WRITE_GRAN 32 /* @note you must define it for a value */
  23. /* MCU Endian Configuration, default is Little Endian Order. */
  24. /* #define FDB_BIG_ENDIAN */
  25. /* log print macro. default EF_PRINT macro is printf() */
  26. /* #define FDB_PRINT(...) my_printf(__VA_ARGS__) */
  27. /* print debug information */
  28. //#define FDB_DEBUG_ENABLE
  29. #endif /* _FDB_CFG_H_ */