[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/gpio HalPXA27xGeneralIOM.nc, 1.1.2.3, 1.1.2.4

Jonathan Hui jwhui at users.sourceforge.net
Thu Sep 28 12:57:10 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/gpio
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10355/chips/pxa27x/gpio

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	HalPXA27xGeneralIOM.nc 
Log Message:

Updates to include isInput() and isOutput()



Index: HalPXA27xGeneralIOM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/gpio/HalPXA27xGeneralIOM.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** HalPXA27xGeneralIOM.nc	5 Jul 2006 21:24:13 -0000	1.1.2.3
--- HalPXA27xGeneralIOM.nc	28 Sep 2006 19:57:08 -0000	1.1.2.4
***************
*** 85,89 ****
      return;
    }
! 
    async command void GeneralIO.makeOutput[uint8_t pin]() {
      atomic call HplPXA27xGPIOPin.setGPDRbit[pin](TRUE);
--- 85,95 ----
      return;
    }
!   
!   async command void GeneralIO.isInput[uint8_t pin]() {
!     bool result;
!     result = !call HplPXA27xGPIOPin.getGPLRbit[pin]();
!     return;
!   }
!   
    async command void GeneralIO.makeOutput[uint8_t pin]() {
      atomic call HplPXA27xGPIOPin.setGPDRbit[pin](TRUE);
***************
*** 91,94 ****
--- 97,106 ----
    }
  
+   async command void GeneralIO.isOutput[uint8_t pin]() {
+     bool result;
+     result = call HplPXA27xGPIOPin.getGPDRbit[pin]();
+     return result;
+   }
+   
    async command error_t HalPXA27xGpioInterrupt.enableRisingEdge[uint8_t pin]() {
      atomic {



More information about the Tinyos-2-commits mailing list