diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-08-08 22:24:26 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-08-08 22:24:26 +0000 |
commit | de8cee9bed8f3362d499a127b8cf5a4d012e8ec5 (patch) | |
tree | 3cec3877a43ac17076be1d30a06052e117c28af1 | |
parent | c8ab4f8865a7f2b15f1edf398640dc85caaed843 (diff) |
enable PDC Rx before trying to use it
git-svn-id: https://svn.openpcd.org:2342/trunk@91 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r-- | openpcd/firmware/src/ssc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |