DataFlash® Block Device
[Block Device]
Detailed Description
This is a block device driver for DataFlash devices.
Function Documentation
Initialize a DataFlash block device.
Will allocated memory and initialize internals, and will then start a DataFlash detection sequence. Once this sequence is completed it will run the workqueue task event_task.
- Parameters:
-
| spi_id | SPI Module ID |
| master | SPI master struct |
| device | SPI device struct |
| event_task | Workqueue task to run on an event |
- Returns:
- A new DataFlash block device, or NULL if insufficient memory is available.