diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-02-21 07:24:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-02-21 07:24:53 +0000 |
commit | 157b6f9695e7f72f2d54b231c19cb4045710ed01 (patch) | |
tree | a856d81bf5f173c207510fdeb7367e218f12b3db /os/hal/platforms/AT91SAM7/mac_lld.c | |
parent | a90a90ffcf0f90b2a4b6c24dc5a60e72652549f1 (diff) | |
download | ChibiOS-157b6f9695e7f72f2d54b231c19cb4045710ed01.tar.gz ChibiOS-157b6f9695e7f72f2d54b231c19cb4045710ed01.tar.bz2 ChibiOS-157b6f9695e7f72f2d54b231c19cb4045710ed01.zip |
Updated license dates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1646 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7/mac_lld.c')
-rw-r--r-- | os/hal/platforms/AT91SAM7/mac_lld.c | 20 |
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(Ð1);
@@ -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;
}
|