Brick Groove Machine 0.9.3
Firmware embarqué pour contrôleur/synthé Brick
 
Chargement...
Recherche...
Aucune correspondance
board_flash.h
Aller à la documentation de ce fichier.
1#ifndef BRICK_BOARD_BOARD_FLASH_H_
2#define BRICK_BOARD_BOARD_FLASH_H_
3
4#include <stdbool.h>
5#include <stddef.h>
6#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#ifndef BOARD_FLASH_CAPACITY_BYTES
13#define BOARD_FLASH_CAPACITY_BYTES (16U * 1024U * 1024U)
14#endif
15
16#ifndef BOARD_FLASH_SECTOR_SIZE
17#define BOARD_FLASH_SECTOR_SIZE 4096U
18#endif
19
20bool board_flash_init(void);
21bool board_flash_is_ready(void);
22uint32_t board_flash_get_capacity(void);
23uint32_t board_flash_get_sector_size(void);
24bool board_flash_read(uint32_t address, void *buffer, size_t length);
25bool board_flash_write(uint32_t address, const void *data, size_t length);
26bool board_flash_erase(uint32_t address, size_t length);
27bool board_flash_erase_sector(uint32_t address);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif /* BRICK_BOARD_BOARD_FLASH_H_ */
uint32_t board_flash_get_sector_size(void)
Definition board_flash.c:97
bool board_flash_init(void)
Definition board_flash.c:69
uint32_t board_flash_get_capacity(void)
Definition board_flash.c:93
bool board_flash_is_ready(void)
Definition board_flash.c:89
bool board_flash_erase_sector(uint32_t address)
Definition board_flash.c:150
bool board_flash_read(uint32_t address, void *buffer, size_t length)
Definition board_flash.c:101
bool board_flash_erase(uint32_t address, size_t length)
Definition board_flash.c:169
bool board_flash_write(uint32_t address, const void *data, size_t length)
Definition board_flash.c:132