Skip to contentSkip to conversation

get a confirmation from user

U-Boot-Users Mike Frysinger 1 participant 1 message Nov 9, 2007

lore
Share & tools
lore
#0 lore raw

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071109/65a30dd2/attachment.pgp