Configuration

    Enable KVDB feature

    Enable KV automatic upgrade function. After this function is enabled, stores the version of the current database. If the version changes, it will automatically trigger an upgrade action and update the new default KV collection to the current database.

    FDB_USING_TSDB

    Enable TSDB feature

    FDB_USING_FAL_MODE

    Using POSIX file mode, you need to provide an open/read/write/close related file access interface.

    FDB_USING_FILE_LIBC_MODE

    Using the file mode of the C standard library, you need to provide a fopen/fread/fwrte/fclose related file access interface.

    FDB_WRITE_GRAN

    • 1: nor flash
    • 32: stm32f1 on-chip Flash

    If multiple Flash specifications are used in the database, for example: both nor flash and stm32f4 on-chip Flash, the maximum value is used as the configuration item, namely: 8 bit

    MCU small-endian configuration, when the default is not configured, the system automatically uses the small-endian configuration

    FDB_PRINT(…)

    The print function macro defines the configuration. When it is not configured by default, using as the print log is the output function. Users can also customize new print function macro definitions, for example:

    FDB_DEBUG_ENABLE