CODE EXAMPLE 3-6Sample User Flash Application Program (Continued)

}

printf ("\nuser data buffer:\n"); for (i = 0; i < size; i++) {

printf("%2x ", r_buf[i] & 0xff);

}

printf("\n");

default:

continue;

}

}

/* exit */

getout:

close(fd0);

return;

} /* end of main() */

58 Netra CP2500 Board Programming Guide • March 2007

Page 72
Image 72
Sun Microsystems CP2500 manual Code Example 3-6Sample User Flash Application Program