aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/serial_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-17 19:40:36 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-17 19:40:36 +0000
commitb7e7258008897b11c6c8bbdc3220a49f3eaed949 (patch)
tree5d88028354554d0fb2823a7837d1f94c1d5794b0 /os/hal/platforms/AT91SAM7/serial_lld.c
parentbef0924474a4180b737e20fac0f27bcd468d1a2f (diff)
downloadChibiOS-b7e7258008897b11c6c8bbdc3220a49f3eaed949.tar.gz
ChibiOS-b7e7258008897b11c6c8bbdc3220a49f3eaed949.tar.bz2
ChibiOS-b7e7258008897b11c6c8bbdc3220a49f3eaed949.zip
Unfinished AT91SAM7 SPI driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2266 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7/serial_lld.c')
-rw-r--r--os/hal/platforms/AT91SAM7/serial_lld.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.c b/os/hal/platforms/AT91SAM7/serial_lld.c
index df57e5ed4..10833f497 100644
--- a/os/hal/platforms/AT91SAM7/serial_lld.c
+++ b/os/hal/platforms/AT91SAM7/serial_lld.c
@@ -248,8 +248,8 @@ CH_IRQ_HANDLER(USART1IrqHandler) {
}
#endif
-// note - DBGU_UART IRQ is the SysIrq in board.c
-// since it's not vectored separately by the AIC
+/* note - DBGU_UART IRQ is the SysIrq in board.c
+ since it's not vectored separately by the AIC.*/
/*===========================================================================*/
/* Driver exported functions. */
@@ -286,9 +286,9 @@ void sd_lld_init(void) {
#if USE_SAM7_DBGU_UART
sdObjectInit(&SD3, NULL, notify3);
- // this is a little cheap, but OK for now since there's enough overlap
- // between dbgu and usart register maps. it means we can reuse all the
- // same usart interrupt handling and config that already exists
+ /* this is a little cheap, but OK for now since there's enough overlap
+ between dbgu and usart register maps. it means we can reuse all the
+ same usart interrupt handling and config that already exists.*/
SD3.usart = (AT91PS_USART)AT91C_BASE_DBGU;
AT91C_BASE_PIOA->PIO_PDR = SAM7_DBGU_RX | SAM7_DBGU_TX;
AT91C_BASE_PIOA->PIO_ASR = SAM7_DBGU_RX | SAM7_DBGU_TX;
@@ -328,7 +328,8 @@ void sd_lld_start(SerialDriver *sdp, const SerialConfig *config) {
AIC_EnableIT(AT91C_ID_US1);
}
#endif
- // note - no explicit start for SD3 (DBGU_UART) since it's not included in the AIC or PMC
+ /* Note - no explicit start for SD3 (DBGU_UART) since it's not included
+ in the AIC or PMC.*/
}
usart_init(sdp, config);
}