summaryrefslogtreecommitdiff
path: root/firmware/src/dfu/dfu.c
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-22 22:10:46 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-22 22:10:46 +0000
commit1ba82b71074e31e0a9451e80c2de4bca2716adf2 (patch)
treee5ea5d41d2487af9e7a38e8b1ca69d0a5707e526 /firmware/src/dfu/dfu.c
parent706ffa9f3b986eff193377142459fbfde2362036 (diff)
make sure DFU loader always prints some informational / copyright message upon startup
git-svn-id: https://svn.openpcd.org:2342/trunk@220 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/dfu/dfu.c')
-rw-r--r--firmware/src/dfu/dfu.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/firmware/src/dfu/dfu.c b/firmware/src/dfu/dfu.c
index 693f2eb..7e7c575 100644
--- a/firmware/src/dfu/dfu.c
+++ b/firmware/src/dfu/dfu.c
@@ -808,7 +808,6 @@ static __dfufunc void dfu_udp_irq(void)
AT91F_AIC_ClearIt(AT91C_BASE_AIC, AT91C_ID_UDP);
- { volatile int i; for (i=0; i< 0x3ff; i++) ; }
led1off();
}
@@ -817,6 +816,7 @@ static void dfu_switch(void)
{
AT91PS_AIC pAic = AT91C_BASE_AIC;
+ DEBUGE("\r\nsam7dfu: switching to DFU mode\r\n");
AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, OPENPCD_PIO_LED1);
AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, OPENPCD_PIO_LED2);
led1off();
@@ -830,6 +830,9 @@ static void dfu_switch(void)
pAic->AIC_SVR[AT91C_ID_UDP] = (unsigned int) &dfu_udp_irq;
dfu_state = DFU_STATE_dfuIDLE;
dfu_status = DFU_STATUS_OK;
+ //AT91F_DBGU_Printk("You may now start the DFU up/download process\r\n");
+ AT91F_DBGU_Printk("\r\nTHIS DOES NOT WORK YET, "
+ " PLEASE PUSH THE BUTTON WHILE POWERING UP\r\n");
}
void __dfufunc dfu_main(void)
@@ -840,11 +843,12 @@ void __dfufunc dfu_main(void)
led2off();
AT91F_DBGU_Init();
- DEBUGE("sam7dfu startup\r\n");
-
- AT91F_DBGU_Printk("\n\r");
- AT91F_DBGU_Printk(COMPILE_DATE " " COMPILE_BY " " COMPILE_SVNREV);
- AT91F_DBGU_Printk("\n\r");
+ AT91F_DBGU_Printk("\n\r\n\rsam7dfu - AT91SAM7 USB DFU bootloader\n\r"
+ "(C) 2006 by Harald Welte <hwelte@hmw-consulting.de>\n\r"
+ "This software is FREE SOFTWARE licensed under GNU GPL\n\r");
+ AT91F_DBGU_Printk("Version " COMPILE_SVNREV
+ " compiled " COMPILE_DATE
+ " by " COMPILE_BY "\n\r\n\r");
udp_init();
@@ -871,7 +875,7 @@ void __dfufunc dfu_main(void)
flash_init();
- DEBUGE("sam7dfu entering main loop\r\n");
+ AT91F_DBGU_Printk("You may now start the DFU up/download process\r\n");
/* do nothing, since all of DFU is interrupt driven */
while (1) ;
}
personal git repositories of Harald Welte. Your mileage may vary