generic flash control interfaces' header
More...
#include <stdlib.h>
#include <stdint.h>
#include <pthread.h>
Go to the source code of this file.
generic flash control interfaces' header
- Author
- Gijun Oh
- Version
- 0.1
- Date
- 2021-09-22
◆ anonymous enum
flags related on the flash and submodule
Enumerator |
---|
FLASH_DEFAULT_FLAG | flash default flags
|
◆ flash_module_exit()
free resources in the flash module
- Parameters
-
flash | pointer of the flash device information |
- Returns
- zero to success, error number to fail
◆ flash_module_init()
int flash_module_init |
( |
struct flash_device ** |
__flash, |
|
|
uint64_t |
flags |
|
) |
| |
initialize the flash module
- Parameters
-
__flash | double pointer of the flash device information |
flags | flags for flash module and submodule |
- Returns
- zero to success, error number to fail
- Note
- This function allocates the memory to the __flash