mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Add programmer-specific delay functions
Add external programmer delay functions so external programmers can handle the delay on their own if needed. Corresponding to flashrom svn r578. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Urja Rannikko <urjaman@gmail.com>
This commit is contained in:
4
udelay.c
4
udelay.c
@ -24,10 +24,10 @@
|
||||
// count to a billion. Time it. If it's < 1 sec, count to 10B, etc.
|
||||
unsigned long micro = 1;
|
||||
|
||||
void myusec_delay(int time)
|
||||
void myusec_delay(int usecs)
|
||||
{
|
||||
volatile unsigned long i;
|
||||
for (i = 0; i < time * micro; i++) ;
|
||||
for (i = 0; i < usecs * micro; i++) ;
|
||||
}
|
||||
|
||||
void myusec_calibrate_delay(void)
|
||||
|
Reference in New Issue
Block a user