Skip to content

Commit ba04a05

Browse files
hfakkizttmut
authored andcommitted
drivers: flash: Add wrap version of flash write function
To fix MAX32690 flash problems, I created a wrap version of MXC_FLC_Write(...) function which disables ICC before calling write function and enables ICC after this function. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
1 parent ecc9fee commit ba04a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/flash/flash_max32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <zephyr/drivers/flash.h>
1212
#include <zephyr/init.h>
1313

14-
#include "flc.h"
14+
#include "wrap_max32_flc.h"
1515

1616
struct max32_flash_dev_config {
1717
uint32_t flash_base;
@@ -77,7 +77,7 @@ static int api_write(const struct device *dev, off_t address, const void *buffer
7777

7878
key = irq_lock();
7979

80-
ret = MXC_FLC_Write(address, length, (uint32_t *)buffer);
80+
ret = Wrap_MXC_FLC_Write(address, length, (uint32_t *)buffer);
8181

8282
irq_unlock(key);
8383

0 commit comments

Comments
 (0)