mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 08:20:21 +00:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
36 lines
745 B
C
36 lines
745 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Init sector cache system
|
|
*/
|
|
void sector_cache_init();
|
|
|
|
/**
|
|
* @brief Get sector data from cache
|
|
* @param n_sector Sector number
|
|
* @return Pointer to sector data or NULL if not found
|
|
*/
|
|
uint8_t* sector_cache_get(uint32_t n_sector);
|
|
|
|
/**
|
|
* @brief Put sector data to cache
|
|
* @param n_sector Sector number
|
|
* @param data Pointer to sector data
|
|
*/
|
|
void sector_cache_put(uint32_t n_sector, uint8_t* data);
|
|
|
|
/**
|
|
* @brief Invalidate sector cache for given range
|
|
* @param start_sector Start sector number
|
|
* @param end_sector End sector number
|
|
*/
|
|
void sector_cache_invalidate_range(uint32_t start_sector, uint32_t end_sector);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|