mirror of https://github.com/ARMmbed/mbed-os.git
nRF52840: Fixed flashapi test and casting issue
parent
98d4a13959
commit
4bb818cd97
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include "mbed.h"
|
#include "mbed.h"
|
||||||
#include "flash_api.h"
|
#include "flash_api.h"
|
||||||
#include "flash_data.h"
|
|
||||||
|
|
||||||
using namespace utest::v1;
|
using namespace utest::v1;
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
|
||||||
/* We will use *_words function to speed up flashing code. Word means 32bit -> 4B
|
/* We will use *_words function to speed up flashing code. Word means 32bit -> 4B
|
||||||
* or sizeof(uint32_t).
|
* or sizeof(uint32_t).
|
||||||
*/
|
*/
|
||||||
nrf_nvmc_write_words(address, data, (size / sizeof(uint32_t)));
|
nrf_nvmc_write_words(address, (const uint32_t *) data, (size / sizeof(uint32_t)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue