diff options
author | liamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-24 21:16:10 +0000 |
---|---|---|
committer | liamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-24 21:16:10 +0000 |
commit | 9da7f0b661c0f776a14d9f69295f23ed486de584 (patch) | |
tree | ba226a3f5043f584063866b7f6b77e30d8275bdc /boards/OLIMEX_SAM7_EX256 | |
parent | 2ccc6ff2927737d88d2df025fa5ca120f09b11d1 (diff) | |
download | ChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.tar.gz ChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.tar.bz2 ChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.zip |
* add serial support for the AT91SAM7 DBGU peripheral
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1888 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_SAM7_EX256')
-rw-r--r-- | boards/OLIMEX_SAM7_EX256/board.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/boards/OLIMEX_SAM7_EX256/board.c b/boards/OLIMEX_SAM7_EX256/board.c index c2a460303..c918bda35 100644 --- a/boards/OLIMEX_SAM7_EX256/board.c +++ b/boards/OLIMEX_SAM7_EX256/board.c @@ -33,8 +33,14 @@ static CH_IRQ_HANDLER(SYSIrqHandler) { chSysTimerHandlerI();
chSysUnlockFromIsr();
}
+
+#if USE_SAM7_DBGU_UART
+ if (AT91C_BASE_DBGU->DBGU_CSR &
+ (AT91C_US_RXRDY | AT91C_US_TXRDY | AT91C_US_PARE | AT91C_US_FRAME | AT91C_US_OVRE | AT91C_US_RXBRK)) {
+ sd_lld_serve_interrupt(&SD3);
+ }
+#endif
AT91C_BASE_AIC->AIC_EOICR = 0;
-
CH_IRQ_EPILOGUE();
}
|