コード例 #1
0
ファイル: nrf_gzp_host.c プロジェクト: 1072258106/duband
static void gzp_set_host_id(const uint8_t* src)
{
  if(*((uint8_t*)GZP_PARAMS_STORAGE_ADR) == 0xff)
  {
    nrf_nvmc_write_bytes(GZP_PARAMS_STORAGE_ADR + 1, src, GZP_HOST_ID_LENGTH);
    nrf_nvmc_write_byte(GZP_PARAMS_STORAGE_ADR, 0x00);
  }    
}
コード例 #2
0
ファイル: nrf_gzp_device.c プロジェクト: 1072258106/duband
static void gzp_params_db_add(const uint8_t* src_element, uint8_t index)
{
    nrf_nvmc_write_bytes((GZP_PARAMS_DB_ADR + (index * GZP_PARAMS_DB_ELEMENT_SIZE)), src_element, (uint32_t)GZP_PARAMS_DB_ELEMENT_SIZE);
}
コード例 #3
0
ファイル: nrf5x_utils.c プロジェクト: RobinLin/Espruino
void nrf_utils_write_flash_bytes(uint32_t addr, uint8_t * buf, uint32_t len)
{
  nrf_nvmc_write_bytes(addr, buf, len);
}
コード例 #4
0
ファイル: flash_nosd.c プロジェクト: aeliot/openthread
uint32_t nrf5FlashWrite(uint32_t aAddress, uint8_t *aData, uint32_t aSize)
{
    nrf_nvmc_write_bytes(aAddress, aData, aSize);
    return aSize;
}