Skip to content

Commit 424c187

Browse files
FRASTMfabiobaltieri
authored andcommitted
drivers: flash: stm32wba flash driver moves sem functions
When the CONFIG_BT_STM32WBA the stm32wba_fm flash driver is compiled and must takes flash_stm32_sem_take/give functions from the flash_stm32.h header file, like other stm32 series. Signed-off-by: Francois Ramu <[email protected]>
1 parent 06a5841 commit 424c187

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

drivers/flash/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if(CONFIG_SOC_FLASH_STM32)
9797
zephyr_library_sources_ifdef(CONFIG_DT_HAS_ST_STM32H7_FLASH_CONTROLLER_ENABLED flash_stm32h7x.c)
9898
elseif(CONFIG_SOC_SERIES_STM32WBAX)
9999
if(CONFIG_BT_STM32WBA)
100-
# BLE is enabled. Use implementation over Flash Manager for coexistence wit RF activities
100+
# BLE is enabled. Use implementation over Flash Manager for coexistence with RF activities
101101
zephyr_library_sources(flash_stm32wba_fm.c)
102102
else()
103103
zephyr_library_sources_ifdef(CONFIG_DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED flash_stm32.c flash_stm32wbax.c)

drivers/flash/flash_stm32wba_fm.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,6 @@ bool flash_stm32_valid_range(const struct device *dev, off_t offset,
6666
return flash_stm32_range_exists(dev, offset, len);
6767
}
6868

69-
70-
static inline void flash_stm32_sem_take(const struct device *dev)
71-
{
72-
k_sem_take(&FLASH_STM32_PRIV(dev)->sem, K_FOREVER);
73-
}
74-
75-
static inline void flash_stm32_sem_give(const struct device *dev)
76-
{
77-
k_sem_give(&FLASH_STM32_PRIV(dev)->sem);
78-
}
79-
8069
static int flash_stm32_read(const struct device *dev, off_t offset,
8170
void *data,
8271
size_t len)

0 commit comments

Comments
 (0)