return NULL;
}
- while( p ){
+ while ( p ){
if ( p->target == t ){
return p;
}
}
pChip = all_sam3_chips;
- while(pChip){
+ while (pChip){
if (pChip->target == pTarget ){
break; // return below
} else {
const struct sam3_reg_list *pReg;
pReg = &(sam3_all_regs[0]);
- while(pReg->name){
+ while (pReg->name){
uint32_t *pPossible;
// calculate where this one go..
const struct sam3_reg_list *pReg;
pReg = &(sam3_all_regs[0]);
- while( pReg->name ){
+ while ( pReg->name ){
r = sam3_ReadThisReg( pChip,
sam3_get_reg_ptr( &(pChip->cfg), pReg ) );
if ( r != ERROR_OK ){
pReg = &(sam3_all_regs[0]);
- while(pReg->name){
+ while (pReg->name){
// display all regs
LOG_DEBUG("Start: %s", pReg->name );
regval = *sam3_get_reg_ptr( &(pChip->cfg), pReg );
pChip = all_sam3_chips;
// is this an existing chip?
- while(pChip){
+ while (pChip){
if ( pChip->target == bank->target ){
break;
}
LOG_DEBUG("Begin");
pDetails = all_sam3_details;
- while( pDetails->name ){
+ while ( pDetails->name ){
if ( pDetails->chipid_cidr == pPrivate->pChip->cfg.CHIPID_CIDR ){
break;
} else {
pPrivate->pChip->cfg.CHIPID_CIDR );
sam3_explain_chipid_cidr( pPrivate->pChip );
cp = membuf_strtok( pPrivate->pChip->mbuf, "\n", &vp );
- while(cp){
+ while (cp){
LOG_INFO("%s", cp );
cp = membuf_strtok( NULL, "\n", &vp );
}
//
// do {
// *d++ = *s++;
-// } while( --n )
+// } while ( --n )
// ;
//
// v = p->base;
// v[ 1 ] = p->cmd;
// do {
// r = v[8/4];
-// } while( !(r&1) )
+// } while ( !(r&1) )
// ;
// return r;
// }
LOG_DEBUG("Full Page Loop: cur=%d, end=%d, count=0x%08x",
(int)page_cur, (int)page_end, (unsigned int)(count) );
- while( (page_cur < page_end) &&
+ while ( (page_cur < page_end) &&
(count >= pPrivate->page_size) ){
r = sam3_page_write( pPrivate, page_cur, buffer );
if ( r != ERROR_OK ){
// print results
cp = membuf_strtok( pChip->mbuf, "\n", &vp );
- while(cp){
+ while (cp){
command_print(cmd_ctx,"%s", cp );
cp = membuf_strtok( NULL, "\n", &vp );
}