Added an internal function to obtain the flash page layout in run-length encoded format. The API is simple and allows the actual public API implementations to be simple and maintainable. This feature can be enabled by using the FLASH_PAGE_LAYOUT Kconfig option. This API is required for the implementation of flash file system. Added a public API to get flash page information (size and start offset) by offset within the flash and by index of the page. Added a generic implementation of the internal flash_get_page_info API. Added an additional public API call to get the total count of pages in the flash memory and its generic implementation. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
22 lines
713 B
Makefile
22 lines
713 B
Makefile
obj-$(CONFIG_SPI_FLASH_W25QXXDV) += spi_flash_w25qxxdv.o
|
|
obj-$(CONFIG_SOC_FLASH_QMSI) += soc_flash_qmsi.o
|
|
obj-$(CONFIG_SOC_FLASH_NRF5) += soc_flash_nrf5.o
|
|
obj-$(CONFIG_SOC_FLASH_MCUX) += soc_flash_mcux.o
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32F3X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32f3x.o
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32f3x_priv.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32F4X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32.o flash_stm32f4x.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SOC_SERIES_STM32L4X),y)
|
|
obj-$(CONFIG_SOC_FLASH_STM32) += flash_stm32.o flash_stm32l4x.o
|
|
endif
|
|
|
|
ccflags-$(CONFIG_SOC_FLASH_NRF5_RADIO_SYNC) += -I${ZEPHYR_BASE}/subsys/bluetooth
|
|
|
|
obj-$(CONFIG_FLASH_PAGE_LAYOUT) += flash_page_layout.o
|