|
PebbleOS v4.47.0-1362-gd278268fe
|
#include <stdatomic.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/drivers/flash.h>#include <pbl/kernel/mutex.h>#include <pbl/kernel/sem.h>#include <pbl/kernel/thread.h>#include <pbl/kernel/work.h>Data Structures | |
| struct | pbl_flash_ops |
| Flash driver operations. More... | |
| struct | pbl_flash |
| A flash. More... | |
Macros | |
| #define | PBL_FLASH_STATE_DEFINE(sym) |
Define the class state of flash sym, for the PBL_FLASH_*_DEFINE() macro of a driver. | |
| #define | PBL_FLASH_INIT(sym, _name, _parent, _ops, _geometry, _otp, _otp_layout) |
Initializer for the struct pbl_flash of flash sym. | |
Functions | |
| static bool | pbl_flash_in_coredump (const struct pbl_flash *flash) |
| Check whether the flash runs in coredump mode, for drivers. | |
| void | pbl_flash_set_map (const struct pbl_flash *flash, const void *ptr, uint32_t len) |
| Declare where the CPU reads the flash directly, for drivers. | |