[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250 HplTda5250DataIOC.nc, 1.1.2.1, 1.1.2.2 HplTda5250DataIOP.nc, 1.1.2.1, 1.1.2.2

Philipp Huppertz phihup at users.sourceforge.net
Tue Aug 15 06:54:09 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20443/tos/platforms/eyesIFX/chips/tda5250

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	HplTda5250DataIOC.nc HplTda5250DataIOP.nc 
Log Message:
- radio is now informed (via ResourceRequested) if another client wants the uart (usart) resource (for example the flash)
- needs to be tested more...

Index: HplTda5250DataIOC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250/Attic/HplTda5250DataIOC.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** HplTda5250DataIOC.nc	9 Aug 2006 13:17:07 -0000	1.1.2.1
--- HplTda5250DataIOC.nc	15 Aug 2006 13:54:07 -0000	1.1.2.2
***************
*** 41,45 ****
    provides {
  		interface Resource;
! 		// interfcace ResourceRequested;
  		interface SerialByteComm;
  		interface HplTda5250DataControl;		
--- 41,45 ----
    provides {
  		interface Resource;
!     interface ResourceRequested;
  		interface SerialByteComm;
  		interface HplTda5250DataControl;		
***************
*** 53,61 ****
  
  	Resource = Msp430Uart0C.Resource;
! 	// ResourceRequested = Msp430Uart0C.ResourceRequested
  	SerialByteComm = Msp430Uart0C.SerialByteComm;
  	
  	HplTda5250DataControl = HplTda5250DataIOP;
- 	HplTda5250DataIOP.UartResource -> Msp430Uart0C.Resource;
    HplTda5250DataIOP.UartControl -> Msp430Uart0C.UartControl;
  	HplTda5250DataIOP.UartResourceConfigure <- Msp430Uart0C.Msp430UartConfigure;  
--- 53,60 ----
  
  	Resource = Msp430Uart0C.Resource;
!   ResourceRequested = Msp430Uart0C.ResourceRequested;
  	SerialByteComm = Msp430Uart0C.SerialByteComm;
  	
  	HplTda5250DataControl = HplTda5250DataIOP;
    HplTda5250DataIOP.UartControl -> Msp430Uart0C.UartControl;
  	HplTda5250DataIOP.UartResourceConfigure <- Msp430Uart0C.Msp430UartConfigure;  

Index: HplTda5250DataIOP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250/Attic/HplTda5250DataIOP.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** HplTda5250DataIOP.nc	9 Aug 2006 13:17:07 -0000	1.1.2.1
--- HplTda5250DataIOP.nc	15 Aug 2006 13:54:07 -0000	1.1.2.2
***************
*** 47,51 ****
    uses {
      interface Msp430UartControl as UartControl;
-     interface Resource as UartResource;
    }
  }
--- 47,50 ----
***************
*** 54,59 ****
    
    async command error_t HplTda5250DataControl.setToTx() {
-     if(call UartResource.isOwner() == FALSE)
-       return FAIL;
      call UartControl.setModeTx();
      return SUCCESS;
--- 53,56 ----
***************
*** 61,66 ****
  
    async command error_t HplTda5250DataControl.setToRx() {
-    if(call UartResource.isOwner() == FALSE)
-      return FAIL;
     call UartControl.setModeRx();
     return SUCCESS;
--- 58,61 ----
***************
*** 71,75 ****
  	}
  
- 	/* don't touch this */
- 	event void UartResource.granted() {};
  }
--- 66,68 ----



More information about the Tinyos-2-commits mailing list