fixed naming of SPI and CC2420 related code

This commit is contained in:
joxe 2010-06-23 10:19:15 +00:00
parent 80942abaf7
commit 705f8cc451
2 changed files with 10 additions and 7 deletions

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)$Id: cc2420-arch.c,v 1.8 2010/05/10 11:32:44 nifi Exp $
* @(#)$Id: cc2420-arch.c,v 1.9 2010/06/23 10:19:15 joxe Exp $
*/
#include <io.h>
@ -47,7 +47,7 @@
#endif
/*---------------------------------------------------------------------------*/
interrupt(PORT1_VECTOR)
interrupt(CC2420_IRQ_VECTOR)
cc24240_port1_interrupt(void)
{
ENERGEST_ON(ENERGEST_TYPE_IRQ);
@ -64,12 +64,14 @@ cc2420_arch_init(void)
spi_init();
/* all input by default, set these as output */
P4DIR |= BV(CSN) | BV(VREG_EN) | BV(RESET_N);
CC2420_CSN_PORT(DIR) |= BV(CC2420_CSN_PIN);
CC2420_VREG_PORT(DIR) |= BV(CC2420_VREG_PIN);
CC2420_RESET_PORT(DIR) |= BV(CC2420_RESET_PIN);
#if CONF_SFD_TIMESTAMPS
cc2420_arch_sfd_init();
#endif
SPI_DISABLE(); /* Unselect radio. */
CC2420_SPI_DISABLE(); /* Unselect radio. */
}
/*---------------------------------------------------------------------------*/