From de8cee9bed8f3362d499a127b8cf5a4d012e8ec5 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Tue, 8 Aug 2006 22:24:26 +0000 Subject: enable PDC Rx before trying to use it git-svn-id: https://svn.openpcd.org:2342/trunk@91 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/ssc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpcd/firmware/src/ssc.c b/openpcd/firmware/src/ssc.c index 5be7171..4c840b6 100644 --- a/openpcd/firmware/src/ssc.c +++ b/openpcd/firmware/src/ssc.c @@ -145,10 +145,12 @@ void ssc_rx_init(void) /* Enable RX interrupts */ AT91F_SSC_EnableIt(ssc, AT91C_SSC_OVRUN | AT91C_SSC_ENDRX | AT91C_SSC_RXBUFF); + AT91F_PDC_EnableRx(rx_pdc); } void ssc_fini(void) { + AT91F_PDC_DisableRx(rx_pdc); AT91F_SSC_DisableTx(ssc); AT91F_SSC_DisableRx(ssc); AT91F_SSC_DisableIt(ssc, 0xfff); -- cgit v1.2.3