nRF52840: Fixed flashapi test and casting issue

pull/4282/head
kl-cruz 2017-05-08 09:10:16 +02:00
parent 98d4a13959
commit 4bb818cd97
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@
#include "mbed.h"
#include "flash_api.h"
#include "flash_data.h"
using namespace utest::v1;

View File

@ -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
* 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;
}