PERFORCE change 103390 for review
Warner Losh
imp at FreeBSD.org
Mon Aug 7 19:06:03 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103390
Change 103390 by imp at imp_bugs on 2006/08/07 19:05:43
At the cost of a few bytes, make this more general.
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#14 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/reset.c#3 edit
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#14 (text) ====
@@ -41,7 +41,7 @@
int xmodem_rx(char *dst);
/* */
-void start_wdog(void);
+void start_wdog(int n);
void reset(void);
/* Delay us */
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/reset.c#3 (text+ko) ====
@@ -49,9 +49,9 @@
* it can kick the watch dog part of the ST part for the OS's driver.
*/
void
-start_wdog(void)
+start_wdog(int n)
{
- // The following should effect a reset after 30 seconds.
- AT91C_BASE_ST->ST_WDMR = (30 * (32768 / 128)) | AT91C_ST_RSTEN;
+ // The following should effect a reset after N seconds.
+ AT91C_BASE_ST->ST_WDMR = (n * (32768 / 128)) | AT91C_ST_RSTEN;
AT91C_BASE_ST->ST_CR = AT91C_ST_WDRST;
}
More information about the p4-projects
mailing list