ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
log_flash_ram.h File Reference

log_flash_t on a RAM buffer with NOR semantics (erase sets 0xFF, program can only clear bits). More...

#include "log_store.h"
Include dependency graph for log_flash_ram.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

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.

Function Documentation

◆ log_flash_ram_init()

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().

Here is the call graph for this function:
Here is the caller graph for this function: