flash_init

Initialize the FLASH HAL instance and hardware for callback mode.

int32_t flash_init(
    struct flash_descriptor * flash,
    void *const hw
)

Initialize FLASH HAL with interrupt mode (uses callbacks).

Parameters

flash

Type: struct flash_descriptor Struct *

Pointer to the HAL FLASH instance.

hw

Type: void *const

Pointer to the hardware base.

Returns

Type: int32_t

Initialize status.