[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/epic MotePlatformC.nc, NONE, 1.1 .platform, 1.1, 1.2 PlatformC.nc, 1.1, 1.2 PlatformP.nc, 1.1, 1.2
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Mon Aug 25 09:49:22 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/epic
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14951/tos/platforms/epic
Modified Files:
.platform PlatformC.nc PlatformP.nc
Added Files:
MotePlatformC.nc
Log Message:
Deluge T2 support for Epic. This includes support for at45db161d and some refactoring and cleaning.
--- NEW FILE: MotePlatformC.nc ---
module MotePlatformC @safe() {
provides interface Init;
}
implementation {
command error_t Init.init() {
// reset all of the ports to be input and using i/o functionality
atomic
{
P1SEL = 0;
P2SEL = 0;
P3SEL = 0;
P4SEL = 0;
P5SEL = 0;
P6SEL = 0;
P1OUT = 0x00;
P1DIR = 0xe0;
P2OUT = 0x30;
P2DIR = 0x7b;
P3OUT = 0x00;
P3DIR = 0xf1;
P4OUT = 0xdd;
P4DIR = 0xfd;
P5OUT = 0xff;
P5DIR = 0xff;
P6OUT = 0x00;
P6DIR = 0xff;
P1IE = 0;
P2IE = 0;
// the commands above take care of the pin directions
// there is no longer a need for explicit set pin
// directions using the TOSH_SET/CLR macros
}//atomic
return SUCCESS;
}
}
Index: .platform
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/epic/.platform,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** .platform 7 Aug 2008 19:51:45 -0000 1.1
--- .platform 25 Aug 2008 16:48:47 -0000 1.2
***************
*** 11,14 ****
--- 11,15 ----
%T/platforms/epic
+ %T/platforms/epic/chips/at45db
%T/platforms/telosa
%T/platforms/telosa/chips/cc2420
***************
*** 33,38 ****
%T/chips/msp430/usart
%T/chips/msp430/sensors
! # TODO
! # %T/chips/at45db161d
%T/lib/timer
%T/lib/serial
--- 34,38 ----
%T/chips/msp430/usart
%T/chips/msp430/sensors
! %T/chips/at45db
%T/lib/timer
%T/lib/serial
Index: PlatformC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/epic/PlatformC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PlatformC.nc 7 Aug 2008 06:37:05 -0000 1.1
--- PlatformC.nc 25 Aug 2008 16:48:47 -0000 1.2
***************
*** 41,46 ****
--- 41,48 ----
components PlatformP;
components MoteClockC;
+ components MotePlatformC;
Init = PlatformP;
PlatformP.MoteClockInit -> MoteClockC;
+ PlatformP.MoteInit -> MotePlatformC;
}
Index: PlatformP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/epic/PlatformP.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PlatformP.nc 7 Aug 2008 06:37:05 -0000 1.1
--- PlatformP.nc 25 Aug 2008 16:48:47 -0000 1.2
***************
*** 39,42 ****
--- 39,43 ----
uses {
interface Init as MoteClockInit;
+ interface Init as MoteInit;
interface Init as LedsInit;
}
***************
*** 45,48 ****
--- 46,50 ----
command error_t Init.init() {
call MoteClockInit.init();
+ call MoteInit.init();
call LedsInit.init();
return SUCCESS;
More information about the Tinyos-2-commits
mailing list