![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
log_flash_t on a RAM buffer with NOR semantics (erase sets 0xFF, program can only clear bits). More...
#include "log_store.h"Go to the source code of this file.
Functions | |
| void | log_flash_ram_init (log_flash_t *f, uint8_t *buf, uint32_t size) |
| buf: size bytes (rounded down to whole sectors) | |
log_flash_t on a RAM buffer with NOR semantics (erase sets 0xFF, program can only clear bits).
Used on the bench, which has no log flash, and by the host tests. The log is lost at power-off.
Definition in file log_flash_ram.h.
| void log_flash_ram_init | ( | log_flash_t * | f, |
| uint8_t * | buf, | ||
| uint32_t | size | ||
| ) |
buf: size bytes (rounded down to whole sectors)
Definition at line 36 of file log_flash_ram.c.
References ram_t::b, log_flash_t::ctx, er(), log_flash_t::erase, LOG_SECTOR, pg(), log_flash_t::prog, rd(), log_flash_t::read, s_ram, ram_t::size, and log_flash_t::size.
Referenced by log_flash().