aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/mac_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/AT91SAM7/mac_lld.c')
-rw-r--r--os/hal/platforms/AT91SAM7/mac_lld.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/platforms/AT91SAM7/mac_lld.c b/os/hal/platforms/AT91SAM7/mac_lld.c
index 9517c4838..248202b05 100644
--- a/os/hal/platforms/AT91SAM7/mac_lld.c
+++ b/os/hal/platforms/AT91SAM7/mac_lld.c
@@ -1,5 +1,5 @@
/*
- ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -53,7 +53,7 @@
/*===========================================================================*/
/**
- * @brief Ethernet driver 1.
+ * @brief Ethernet driver 1.
*/
MACDriver ETH1;
@@ -83,7 +83,7 @@ static uint8_t tb[EMAC_TRANSMIT_DESCRIPTORS * EMAC_TRANSMIT_BUFFERS_SIZE]
/*===========================================================================*/
/**
- * @brief IRQ handler.
+ * @brief IRQ handler.
*/
/** @cond never*/
__attribute__((noinline))
@@ -153,7 +153,7 @@ CH_IRQ_HANDLER(irq_handler) {
/*===========================================================================*/
/**
- * @brief Low level MAC initialization.
+ * @brief Low level MAC initialization.
*/
void mac_lld_init(void) {
unsigned i;
@@ -178,7 +178,7 @@ void mac_lld_init(void) {
txptr = td;
/*
- * Associated PHY initialization.
+ * Associated PHY initialization.
*/
miiReset(&ETH1);
@@ -218,7 +218,7 @@ void mac_lld_init(void) {
AT91C_BASE_EMAC->EMAC_NCR &= ~AT91C_EMAC_MPE;
/*
- * Interrupt configuration.
+ * Interrupt configuration.
*/
AT91C_BASE_EMAC->EMAC_IER = AT91C_EMAC_RCOMP | AT91C_EMAC_TCOMP;
AIC_ConfigureIT(AT91C_ID_EMAC,
@@ -272,7 +272,7 @@ msg_t max_lld_get_transmit_descriptor(MACDriver *macp,
}
/*
* Set the buffer size and configuration, the buffer is also marked
- * as locked.
+ * as locked.
*/
if (++txptr >= &td[EMAC_TRANSMIT_DESCRIPTORS]) {
edp->w2 = W2_T_LOCKED | W2_T_USED | W2_T_LAST_BUFFER | W2_T_WRAP;
@@ -368,7 +368,7 @@ skip:
/*
* Now compute the total frame size skipping eventual incomplete frames
- * or holes...
+ * or holes...
*/
restart:
edp = rxptr;
@@ -393,7 +393,7 @@ restart:
cleanup(edp);
goto restart; /* Another start buffer for some reason... */
}
-
+
if (++rxptr >= &rd[EMAC_RECEIVE_DESCRIPTORS])
rxptr = rd;
n--;
@@ -458,7 +458,7 @@ void mac_lld_release_receive_descriptor(MACReceiveDescriptor *rdp) {
while ((n > 0) && !done);
/*
* Make rxptr point to the descriptor where the next frame will most
- * likely appear.
+ * likely appear.
*/
rxptr = edp;
}