Programmers Model
ARM DUI 0447J
Copyright © 2009-2014, ARM. All rights reserved.
4-25
ID052914
Non-Confidential
else
// set control register
SYS_CFGCTRL = SYS_CFG_START | dcc | function | site | position | device
// wait for complete flag to be set
while (!(SYS_CFGSTAT & SYS_CFG_COMPLETE))
// check error status flag and return error flag if set
if (SYS_CFGSTAT & SYS_CFG_ERROR)
return FAILURE
else
// read data
data = SYS_CFGDATA
return SUCCESS