[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/intelmote2/chips/cc2420 HplCC2420AlarmC.nc, 1.4, 1.5 HplCC2420InterruptsC.nc, 1.4, 1.5 HplCC2420SpiC.nc, 1.4, 1.5 HplCC2420PinsC.nc, 1.4, 1.5 IM2CC2420SpiP.nc, 1.5, 1.6 IM2CC2420InitSpiP.nc, 1.4, 1.5
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Tue Jun 10 17:42:18 PDT 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart HplPXA27xBTUARTC.nc, 1.4, 1.5 HplPXA27xFFUARTC.nc, 1.4, 1.5 HalPXA27xSerialP.nc, 1.4, 1.5 pxa27x_serial.h, 1.4, 1.5 HalPXA27xSerialCntl.nc, 1.4, 1.5 HalPXA27xSerialPacket.nc, 1.4, 1.5 HplPXA27xSTUARTC.nc, 1.4, 1.5 PXA27X_UARTREG.h, 1.4, 1.5 HplPXA27xUART.nc, 1.4, 1.5 HplPXA27xUARTP.nc, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/sensorboards/mda100 ArbitratedTempDeviceP.nc, 1.1, 1.2 TempC.nc, 1.1, 1.2 SharedAnalogDeviceC.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9551/platforms/intelmote2/chips/cc2420
Modified Files:
HplCC2420AlarmC.nc HplCC2420InterruptsC.nc HplCC2420SpiC.nc
HplCC2420PinsC.nc IM2CC2420SpiP.nc IM2CC2420InitSpiP.nc
Log Message:
Convert to Unix-style line terminators.
Index: HplCC2420AlarmC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/HplCC2420AlarmC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplCC2420AlarmC.nc 12 Dec 2006 18:23:42 -0000 1.4
--- HplCC2420AlarmC.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,55 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
!
! /**
! *
! * @author Phil Buonadonna
! */
!
! generic configuration HplCC2420AlarmC()
! {
!
! provides interface Init;
! //provides interface Alarm<T32khz,uint16_t> as Alarm32khz16;
! provides interface Alarm<T32khz,uint32_t> as Alarm32khz32;
!
! }
!
! implementation
! {
!
! components new Alarm32khzC();
!
! Init = Alarm32khzC;
! //Alarm32khz16 = Alarm32khzC.Alarm32khz16;
! Alarm32khz32 = Alarm32khzC.Alarm32khz32;
!
! }
--- 1,55 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
!
! /**
! *
! * @author Phil Buonadonna
! */
!
! generic configuration HplCC2420AlarmC()
! {
!
! provides interface Init;
! //provides interface Alarm<T32khz,uint16_t> as Alarm32khz16;
! provides interface Alarm<T32khz,uint32_t> as Alarm32khz32;
!
! }
!
! implementation
! {
!
! components new Alarm32khzC();
!
! Init = Alarm32khzC;
! //Alarm32khz16 = Alarm32khzC.Alarm32khz16;
! Alarm32khz32 = Alarm32khzC.Alarm32khz32;
!
! }
Index: HplCC2420InterruptsC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/HplCC2420InterruptsC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplCC2420InterruptsC.nc 12 Dec 2006 18:23:42 -0000 1.4
--- HplCC2420InterruptsC.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,50 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! configuration HplCC2420InterruptsC
! {
!
! provides interface GpioCapture as CaptureSFD;
! provides interface GpioInterrupt as InterruptCCA;
! provides interface GpioInterrupt as InterruptFIFOP;
!
! }
!
! implementation
! {
! components GeneralIOC;
! components new SoftCaptureC();
!
! CaptureSFD = SoftCaptureC.GpioCapture;
! InterruptCCA = GeneralIOC.GpioInterrupt[CC2420_CCA_PIN];
! InterruptFIFOP = GeneralIOC.GpioInterrupt[CC2420_FIFOP_PIN];
!
! SoftCaptureC.GpioInterrupt -> GeneralIOC.GpioInterrupt[CC2420_SFD_PIN];
! }
--- 1,50 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! configuration HplCC2420InterruptsC
! {
!
! provides interface GpioCapture as CaptureSFD;
! provides interface GpioInterrupt as InterruptCCA;
! provides interface GpioInterrupt as InterruptFIFOP;
!
! }
!
! implementation
! {
! components GeneralIOC;
! components new SoftCaptureC();
!
! CaptureSFD = SoftCaptureC.GpioCapture;
! InterruptCCA = GeneralIOC.GpioInterrupt[CC2420_CCA_PIN];
! InterruptFIFOP = GeneralIOC.GpioInterrupt[CC2420_FIFOP_PIN];
!
! SoftCaptureC.GpioInterrupt -> GeneralIOC.GpioInterrupt[CC2420_SFD_PIN];
! }
Index: HplCC2420SpiC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/HplCC2420SpiC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplCC2420SpiC.nc 12 Dec 2006 18:23:42 -0000 1.4
--- HplCC2420SpiC.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,60 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! generic configuration HplCC2420SpiC()
! {
!
! provides interface Resource;
! provides interface SpiByte;
! provides interface SpiPacket;
!
! }
!
! implementation
! {
!
! enum {
! SPI_CLIENT_ID = unique("CC2420SpiClient")
! };
!
! components IM2CC2420SpiP;
!
! Resource = IM2CC2420SpiP.Resource[SPI_CLIENT_ID];
! SpiByte = IM2CC2420SpiP.SpiByte;
! SpiPacket = IM2CC2420SpiP.SpiPacket[SPI_CLIENT_ID];
!
! components PlatformP;
! IM2CC2420SpiP.Init <- PlatformP.InitL3;
!
! }
--- 1,60 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! generic configuration HplCC2420SpiC()
! {
!
! provides interface Resource;
! provides interface SpiByte;
! provides interface SpiPacket;
!
! }
!
! implementation
! {
!
! enum {
! SPI_CLIENT_ID = unique("CC2420SpiClient")
! };
!
! components IM2CC2420SpiP;
!
! Resource = IM2CC2420SpiP.Resource[SPI_CLIENT_ID];
! SpiByte = IM2CC2420SpiP.SpiByte;
! SpiPacket = IM2CC2420SpiP.SpiPacket[SPI_CLIENT_ID];
!
! components PlatformP;
! IM2CC2420SpiP.Init <- PlatformP.InitL3;
!
! }
Index: HplCC2420PinsC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/HplCC2420PinsC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplCC2420PinsC.nc 12 Dec 2006 18:23:42 -0000 1.4
--- HplCC2420PinsC.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,59 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! configuration HplCC2420PinsC
! {
!
! provides interface GeneralIO as CCA;
! provides interface GeneralIO as CSN;
! provides interface GeneralIO as FIFO;
! provides interface GeneralIO as FIFOP;
! provides interface GeneralIO as RSTN;
! provides interface GeneralIO as SFD;
! provides interface GeneralIO as VREN;
!
! }
!
! implementation
! {
! components GeneralIOC;
!
! CCA = GeneralIOC.GeneralIO[CC2420_CCA_PIN];
! CSN = GeneralIOC.GeneralIO[CC2420_CSN_PIN];
! FIFO = GeneralIOC.GeneralIO[CC2420_FIFO_PIN];
! FIFOP = GeneralIOC.GeneralIO[CC2420_FIFOP_PIN];
! RSTN = GeneralIOC.GeneralIO[CC2420_RSTN_PIN];
! SFD = GeneralIOC.GeneralIO[CC2420_SFD_PIN];
! VREN = GeneralIOC.GeneralIO[CC2420_VREN_PIN];
! }
--- 1,59 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! configuration HplCC2420PinsC
! {
!
! provides interface GeneralIO as CCA;
! provides interface GeneralIO as CSN;
! provides interface GeneralIO as FIFO;
! provides interface GeneralIO as FIFOP;
! provides interface GeneralIO as RSTN;
! provides interface GeneralIO as SFD;
! provides interface GeneralIO as VREN;
!
! }
!
! implementation
! {
! components GeneralIOC;
!
! CCA = GeneralIOC.GeneralIO[CC2420_CCA_PIN];
! CSN = GeneralIOC.GeneralIO[CC2420_CSN_PIN];
! FIFO = GeneralIOC.GeneralIO[CC2420_FIFO_PIN];
! FIFOP = GeneralIOC.GeneralIO[CC2420_FIFOP_PIN];
! RSTN = GeneralIOC.GeneralIO[CC2420_RSTN_PIN];
! SFD = GeneralIOC.GeneralIO[CC2420_SFD_PIN];
! VREN = GeneralIOC.GeneralIO[CC2420_VREN_PIN];
! }
Index: IM2CC2420SpiP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/IM2CC2420SpiP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** IM2CC2420SpiP.nc 27 May 2008 17:48:16 -0000 1.5
--- IM2CC2420SpiP.nc 11 Jun 2008 00:42:14 -0000 1.6
***************
*** 1,75 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! configuration IM2CC2420SpiP
! {
!
! provides interface Init;
! provides interface Resource[uint8_t id];
! provides interface SpiByte;
! provides interface SpiPacket[uint8_t instance];
!
! }
!
! implementation
! {
!
! components new SimpleFcfsArbiterC("CC2420SpiClient") as FcfsArbiterC;
! //components new HalPXA27xSpiDMAC(1,0x7,FALSE) as HalPXA27xSpiM; // 6.5 Mbps, 8bit width
! components new HalPXA27xSpiPioC(1,0x7,FALSE) as HalPXA27xSpiM; // 6.5 Mbps, 8bit width
! components IM2CC2420InitSpiP;
! components HplPXA27xSSP3C;
! components HplPXA27xDMAC;
! components HplPXA27xGPIOC;
! components PlatformP;
!
! Init = IM2CC2420InitSpiP;
! Init = HalPXA27xSpiM.Init;
!
! SpiByte = HalPXA27xSpiM;
! SpiPacket = HalPXA27xSpiM;
! Resource = FcfsArbiterC;
!
! IM2CC2420InitSpiP.SCLK -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_SCLK];
! IM2CC2420InitSpiP.TXD -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_TXD];
! IM2CC2420InitSpiP.RXD -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_RXD];
!
! //HalPXA27xSpiM.RxDMA -> HplPXA27xDMAC.HplPXA27xDMAChnl[0];
! //HalPXA27xSpiM.TxDMA -> HplPXA27xDMAC.HplPXA27xDMAChnl[1];
! //HalPXA27xSpiM.SSPRxDMAInfo -> HplPXA27xSSP3C.SSPRxDMAInfo;
! //HalPXA27xSpiM.SSPTxDMAInfo -> HplPXA27xSSP3C.SSPTxDMAInfo;
!
! HalPXA27xSpiM.SSP -> HplPXA27xSSP3C.HplPXA27xSSP;
!
! }
--- 1,75 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! configuration IM2CC2420SpiP
! {
!
! provides interface Init;
! provides interface Resource[uint8_t id];
! provides interface SpiByte;
! provides interface SpiPacket[uint8_t instance];
!
! }
!
! implementation
! {
!
! components new SimpleFcfsArbiterC("CC2420SpiClient") as FcfsArbiterC;
! //components new HalPXA27xSpiDMAC(1,0x7,FALSE) as HalPXA27xSpiM; // 6.5 Mbps, 8bit width
! components new HalPXA27xSpiPioC(1,0x7,FALSE) as HalPXA27xSpiM; // 6.5 Mbps, 8bit width
! components IM2CC2420InitSpiP;
! components HplPXA27xSSP3C;
! components HplPXA27xDMAC;
! components HplPXA27xGPIOC;
! components PlatformP;
!
! Init = IM2CC2420InitSpiP;
! Init = HalPXA27xSpiM.Init;
!
! SpiByte = HalPXA27xSpiM;
! SpiPacket = HalPXA27xSpiM;
! Resource = FcfsArbiterC;
!
! IM2CC2420InitSpiP.SCLK -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_SCLK];
! IM2CC2420InitSpiP.TXD -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_TXD];
! IM2CC2420InitSpiP.RXD -> HplPXA27xGPIOC.HplPXA27xGPIOPin[SSP3_RXD];
!
! //HalPXA27xSpiM.RxDMA -> HplPXA27xDMAC.HplPXA27xDMAChnl[0];
! //HalPXA27xSpiM.TxDMA -> HplPXA27xDMAC.HplPXA27xDMAChnl[1];
! //HalPXA27xSpiM.SSPRxDMAInfo -> HplPXA27xSSP3C.SSPRxDMAInfo;
! //HalPXA27xSpiM.SSPTxDMAInfo -> HplPXA27xSSP3C.SSPTxDMAInfo;
!
! HalPXA27xSpiM.SSP -> HplPXA27xSSP3C.HplPXA27xSSP;
!
! }
Index: IM2CC2420InitSpiP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2/chips/cc2420/IM2CC2420InitSpiP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** IM2CC2420InitSpiP.nc 12 Dec 2006 18:23:42 -0000 1.4
--- IM2CC2420InitSpiP.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,62 ****
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! module IM2CC2420InitSpiP
! {
!
! provides interface Init;
! uses {
! interface HplPXA27xGPIOPin as SCLK;
! interface HplPXA27xGPIOPin as TXD;
! interface HplPXA27xGPIOPin as RXD;
! }
! }
!
! implementation
! {
! command error_t Init.init() {
! call SCLK.setGAFRpin(SSP3_SCLK_ALTFN);
! call SCLK.setGPDRbit(TRUE);
! call TXD.setGAFRpin(SSP3_TXD_ALTFN);
! call TXD.setGPDRbit(TRUE);
! call RXD.setGAFRpin(SSP3_RXD_ALTFN);
! call RXD.setGPDRbit(FALSE);
!
! return SUCCESS;
! }
! async event void SCLK.interruptGPIOPin() { return;}
! async event void TXD.interruptGPIOPin() { return;}
! async event void RXD.interruptGPIOPin() { return;}
!
! }
--- 1,62 ----
! /* $Id$ */
! /*
! * Copyright (c) 2005 Arched Rock Corporation
! * All rights reserved.
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions are
! * met:
! * Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
! * Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in the
! * documentation and/or other materials provided with the distribution.
! *
! * Neither the name of the Arched Rock Corporation nor the names of its
! * contributors may be used to endorse or promote products derived from
! * this software without specific prior written permission.
! *
! * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
! * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
! * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
! * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
! * ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
! * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
! * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
! * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
! * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
! * DAMAGE.
! */
! /**
! *
! * @author Phil Buonadonna
! */
! module IM2CC2420InitSpiP
! {
!
! provides interface Init;
! uses {
! interface HplPXA27xGPIOPin as SCLK;
! interface HplPXA27xGPIOPin as TXD;
! interface HplPXA27xGPIOPin as RXD;
! }
! }
!
! implementation
! {
! command error_t Init.init() {
! call SCLK.setGAFRpin(SSP3_SCLK_ALTFN);
! call SCLK.setGPDRbit(TRUE);
! call TXD.setGAFRpin(SSP3_TXD_ALTFN);
! call TXD.setGPDRbit(TRUE);
! call RXD.setGAFRpin(SSP3_RXD_ALTFN);
! call RXD.setGPDRbit(FALSE);
!
! return SUCCESS;
! }
! async event void SCLK.interruptGPIOPin() { return;}
! async event void TXD.interruptGPIOPin() { return;}
! async event void RXD.interruptGPIOPin() { return;}
!
! }
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/uart HplPXA27xBTUARTC.nc, 1.4, 1.5 HplPXA27xFFUARTC.nc, 1.4, 1.5 HalPXA27xSerialP.nc, 1.4, 1.5 pxa27x_serial.h, 1.4, 1.5 HalPXA27xSerialCntl.nc, 1.4, 1.5 HalPXA27xSerialPacket.nc, 1.4, 1.5 HplPXA27xSTUARTC.nc, 1.4, 1.5 PXA27X_UARTREG.h, 1.4, 1.5 HplPXA27xUART.nc, 1.4, 1.5 HplPXA27xUARTP.nc, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/sensorboards/mda100 ArbitratedTempDeviceP.nc, 1.1, 1.2 TempC.nc, 1.1, 1.2 SharedAnalogDeviceC.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list