123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
-
- #ifndef NRF_LOG_BACKEND_FLASH_H
- #define NRF_LOG_BACKEND_FLASH_H
- #include "nrf_log_backend_interface.h"
- #include "nrf_fstorage.h"
- #include "nrf_log_internal.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern const nrf_log_backend_api_t nrf_log_backend_flashlog_api;
- extern const nrf_log_backend_api_t nrf_log_backend_crashlog_api;
- typedef struct {
- nrf_log_backend_t backend;
- } nrf_log_backend_flashlog_t;
- typedef struct {
- nrf_log_backend_t backend;
- } nrf_log_backend_crashlog_t;
- #define NRF_LOG_BACKEND_FLASHLOG_DEF(_name) \
- NRF_LOG_BACKEND_DEF(_name, nrf_log_backend_flashlog_api, NULL)
- #define NRF_LOG_BACKEND_CRASHLOG_DEF(_name) \
- NRF_LOG_BACKEND_DEF(_name, nrf_log_backend_crashlog_api, NULL)
- ret_code_t nrf_log_backend_flash_init(nrf_fstorage_api_t const * p_fs_api);
- ret_code_t nrf_log_backend_flash_next_entry_get(uint32_t * p_token,
- nrf_log_header_t * * pp_header,
- uint8_t * * pp_data);
- ret_code_t nrf_log_backend_flash_erase(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|