[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/cc2420dbk
hardware.h, 1.1, 1.2
Joe Polastre
jpolastre at users.sourceforge.net
Sun Jan 16 17:45:23 PST 2005
- Previous message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Drip/tools - New
directory
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/TestDeluge/GoldenImage
GoldenImage.nc, NONE, 1.1 GoldenImageM.nc, NONE, 1.1 Makefile,
1.1, 1.2 GoldenImageWriter.nc, 1.1, NONE GoldenImageWriterM.nc,
1.3, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/cc2420dbk
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23083
Modified Files:
hardware.h
Log Message:
fixes for the new CC2420 library (to coincide with the micaz)
Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/cc2420dbk/hardware.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hardware.h 31 May 2004 23:16:20 -0000 1.1
--- hardware.h 17 Jan 2005 01:45:20 -0000 1.2
***************
*** 129,135 ****
--- 129,149 ----
#define TOSH_CC_FIFOP_INT SIG_INTERRUPT0
+ // CC2420 Interrupt definition
+ #define CC2420_FIFOP_INT_ENABLE() sbi(EIMSK , INT0)
+ #define CC2420_FIFOP_INT_DISABLE() cbi(EIMSK , INT0)
+ #define CC2420_FIFOP_INT_CLEAR() sbi(EIFR, INTF0)
+ void inline CC2420_FIFOP_INT_MODE(bool LowToHigh) {
+ sbi(EICRB,ISC01); // edge mode
+ if( LowToHigh)
+ sbi(EICRB,ISC00); //trigger on rising level
+ else
+ cbi(EICRB,ISC00); //trigger on falling level
+ }
+
+
TOSH_ASSIGN_PIN(CC_RSTN, B, 6); // chipcon reset
TOSH_ASSIGN_PIN(CC_VREN, B, 5); // chipcon power enable
TOSH_ASSIGN_PIN(CC_FIFOP1, D, 0); // fifo interrupt
+ TOSH_ASSIGN_PIN(CC_FIFOP, D, 0); // fifo interrupt
TOSH_ASSIGN_PIN(CC_CCA, D, 6); //
***************
*** 218,225 ****
TOSH_MAKE_RADIO_CCA_INPUT();
- // CC2420 Interrupt definition
- #define CC2420_FIFOP_INT_ENABLE() sbi(EIMSK , INT0)
- #define CC2420_FIFOP_INT_DISABLE() cbi(EIMSK , INT0)
-
// TOSH_MAKE_SERIAL_ID_INPUT();
// TOSH_CLR_SERIAL_ID_PIN(); // Prevent sourcing current
--- 232,235 ----
- Previous message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Drip/tools - New
directory
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/TestDeluge/GoldenImage
GoldenImage.nc, NONE, 1.1 GoldenImageM.nc, NONE, 1.1 Makefile,
1.1, 1.2 GoldenImageWriter.nc, 1.1, NONE GoldenImageWriterM.nc,
1.3, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list