add flash_nrf52_erase
This commit is contained in:
1 parent
c089969471
commit
c8f4c79dd1
2 files changed
+7
-1
No files matched your search
@@ -84,10 +84,15 @@ uint32_t flash_nrf52_read (void* dst, uint32_t src, uint32_t len)
|
||||
return fal_read(dst, src, len);
|
||||
}
|
||||
|
||||
bool flash_nrf52_erase(uint32_t addr)
|
||||
{
|
||||
return fal_erase(addr);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// HAL for caching
|
||||
//--------------------------------------------------------------------+
|
||||
static bool fal_erase (uint32_t addr)
|
||||
bool fal_erase (uint32_t addr)
|
||||
{
|
||||
// Init semaphore for first call
|
||||
if ( !_sem )
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#endif
|
||||
|
||||
void flash_nrf52_flush (void);
|
||||
bool flash_nrf52_erase(uint32_t addr);
|
||||
|
||||
uint32_t flash_nrf52_write (uint32_t dst, void const * src, uint32_t len);
|
||||
uint32_t flash_nrf52_read (void* dst, uint32_t src, uint32_t len);
|
||||
|
||||
Reference in new issue
Block a user