mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
SAMV71-XULT: Need to call sem_progmem_initialize() before using progmem MTD driver
This commit is contained in:
parent
d20f61d2a8
commit
3fe1196ae8
1 changed files with 8 additions and 0 deletions
|
|
@ -66,6 +66,10 @@
|
|||
# include "sam_qspi.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PROGMEM_CHARDEV
|
||||
# include "sam_progmem.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ROMFS
|
||||
# include <arch/board/boot_romfsimg.h>
|
||||
#endif
|
||||
|
|
@ -274,6 +278,10 @@ int sam_bringup(void)
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_PROGMEM_CHARDEV
|
||||
/* Initialize the SAMV71 FLASH programming memory library */
|
||||
|
||||
sam_progmem_initialize();
|
||||
|
||||
/* Create an instance of the SAMV71 FLASH program memory device driver */
|
||||
|
||||
mtd = progmem_initialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue