[U-Boot-Users] get a confirmation from user

9 Nov
2007
9 Nov
'07
10:19 p.m.
some Blackfins have a small amount of One-Time-Programmable (OTP) memory on them. the memory is not part of the Blackfin memory map, it can only be accessed via on-chip functions. due to the nature of the memory (it cannot be reprogrammed) and the way the memory is handled/documented (it's pretty friggin confusing), i'd like to show a confirmation prompt to the user which explains what is going to happen (which can be bypassed with a --force option to the command for non-interactive sessions).
is there any common code to do this ? or do i have to write the small while (1) { tstc()/getc()/ctrlc() } loop myself in order to get the "YES" string ? -mike
6393
Age (days ago)
6393
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mike Frysinger