diff options
-rw-r--r-- | openpcd/firmware/src/os/dbgu.c | 4 | ||||
-rw-r--r-- | openpcd/firmware/src/os/pcd_enumerate.c | 9 |
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 |