aboutsummaryrefslogtreecommitdiffstats
path: root/openpcd
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 17:11:44 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 17:11:44 +0000
commit84f258ce3e60ce2876dccb2a1b56edea39b891c7 (patch)
tree63f6098bc71708d13c60e61cb8fc60d35a3a8c2c /openpcd
parent49be558f0698c084e78f7a4f998c8baf1f195579 (diff)
fix polarity of UDP_PUP
git-svn-id: https://svn.openpcd.org:2342/trunk@158 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd')
-rw-r--r--openpcd/firmware/src/os/dbgu.c4
-rw-r--r--openpcd/firmware/src/os/pcd_enumerate.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/openpcd/firmware/src/os/dbgu.c b/openpcd/firmware/src/os/dbgu.c
index 0cb4244..dc1a040 100644
--- a/openpcd/firmware/src/os/dbgu.c
+++ b/openpcd/firmware/src/os/dbgu.c
@@ -60,13 +60,13 @@ static void DBGU_irq_handler(void)
AT91F_DBGU_Get(&value);
switch (value) {
case '0': //* info
- AT91F_DBGU_Frame("Set Pull up\n\r");
+ AT91F_DBGU_Frame("Clear Pull up\n\r");
// Set
AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
break;
case '1': //* info
AT91F_PIO_SetOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
- AT91F_DBGU_Printk("Clear Pull up\n\r");
+ AT91F_DBGU_Printk("Set Pull up\n\r");
// Reset Application
Send_reset();
break;
diff --git a/openpcd/firmware/src/os/pcd_enumerate.c b/openpcd/firmware/src/os/pcd_enumerate.c
index 8a2c4e1..25c76d5 100644
--- a/openpcd/firmware/src/os/pcd_enumerate.c
+++ b/openpcd/firmware/src/os/pcd_enumerate.c
@@ -339,18 +339,19 @@ void udp_open(void)
/* End-of-Bus-Reset is always enabled */
- /* Clear for set the Pull up resistor */
- AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
+ /* Set the Pull up resistor */
+ AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
+ AT91F_PIO_SetOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
}
void udp_reset(void)
{
volatile int i;
- AT91F_PIO_SetOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
+ AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
for (i = 0; i < 0xffff; i++)
;
- AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
+ AT91F_PIO_SetOutput(AT91C_BASE_PIOA, OPENPCD_PIO_UDP_PUP);
}
#ifdef DEBUG_UDP_EP0