The API that flash drivers have to implement.
The BSP for the hardware will implement the structs defined in this API.
hal_flash_int.h
The Nordic nRF52 bsp implements the hal_flash_int API as seen in hal_bsp.c
const struct hal_flash * hal_bsp_flash_dev(uint8_t id) { /* * Internal flash mapped to id 0. */ if (id != 0) { return NULL; } return &nrf52k_flash_dev; }