[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/dma HplPXA27xDMAM.nc, 1.4, 1.5 HplPXA27xDMAChnl.nc, 1.4, 1.5 HplPXA27xDMAC.nc, 1.4, 1.5 HplPXA27xDMAInfo.nc, 1.4, 1.5 HplPXA27xDMACntl.nc, 1.4, 1.5
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Tue Jun 10 17:42:17 PDT 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/sensorboards/im2sb im2sb.h, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/i2c HalPXA27xI2CMasterP.nc, 1.4, 1.5 HplPXA27xI2CP.nc, 1.4, 1.5 HplPXA27xPI2CC.nc, 1.4, 1.5 HalPXA27xI2CMasterC.nc, 1.4, 1.5 HplPXA27xI2CC.nc, 1.4, 1.5 HplPXA27xI2C.nc, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9551/chips/pxa27x/dma
Modified Files:
HplPXA27xDMAM.nc HplPXA27xDMAChnl.nc HplPXA27xDMAC.nc
HplPXA27xDMAInfo.nc HplPXA27xDMACntl.nc
Log Message:
Convert to Unix-style line terminators.
Index: HplPXA27xDMAM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma/HplPXA27xDMAM.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplPXA27xDMAM.nc 12 Dec 2006 18:23:12 -0000 1.4
--- HplPXA27xDMAM.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,128 ****
! /* $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 HplPXA27xDMAM
! {
! provides {
! interface Init;
! interface HplPXA27xDMACntl;
! interface HplPXA27xDMAChnl[uint8_t chnl];
! }
! uses {
! interface HplPXA27xInterrupt as DMAIrq;
! }
! }
!
! implementation
! {
!
! command error_t Init.init() {
! call DMAIrq.allocate();
! call DMAIrq.enable();
! return SUCCESS;
! }
!
! async command void HplPXA27xDMACntl.setDRCMR(uint8_t peripheral, uint8_t val) {
! DRCMR(peripheral) = val;
! }
! async command uint8_t HplPXA27xDMACntl.getDRCMR(uint8_t peripheral) { return DRCMR(peripheral);}
! async command void HplPXA27xDMACntl.setDALGN(uint32_t val) {DALGN = val;}
! async command uint32_t HplPXA27xDMACntl.getDALGN(uint32_t val) {return DALGN; }
! async command void HplPXA27xDMACntl.setDPCSR(uint32_t val) {DPCSR = val; }
! async command uint32_t HplPXA27xDMACntl.getDPSCR() {return DPCSR; }
! async command void HplPXA27xDMACntl.setDRQSR0(uint32_t val) {DRQSR0 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR0() {return DRQSR0; }
! async command void HplPXA27xDMACntl.setDRQSR1(uint32_t val) {DRQSR1 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR1() {return DRQSR1; }
! async command void HplPXA27xDMACntl.setDRQSR2(uint32_t val) {DRQSR2 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR2() {return DRQSR2; }
! async command uint32_t HplPXA27xDMACntl.getDINT() {return DINT; }
! async command void HplPXA27xDMACntl.setFLYCNFG(uint32_t val) {FLYCNFG = val; }
! async command uint32_t HplPXA27xDMACntl.getFLYCNFG() {return FLYCNFG; }
!
!
! async command error_t HplPXA27xDMAChnl.setMap[uint8_t chnl](uint8_t dev) {
! call HplPXA27xDMACntl.setDRCMR(dev,(DRCMR_MAPVLD | DRCMR_CHLNUM(chnl)));
! return SUCCESS;
! }
! async command void HplPXA27xDMAChnl.setDALGNbit[uint8_t chnl](bool flag) {
! if (flag) {
! DALGN |= (1 << chnl);
! }
! else {
! DALGN &= ~(1 << chnl);
! }
! return;
! }
! async command bool HplPXA27xDMAChnl.getDALGNbit[uint8_t chnl]() {
! return ((DALGN & (1 << chnl)) != 0);
! }
! async command bool HplPXA27xDMAChnl.getDINTbit[uint8_t chnl]() {
! return ((DINT & (1 << chnl)) != 0);
! }
! async command void HplPXA27xDMAChnl.setDCSR[uint8_t chnl](uint32_t val) {
! // uint32_t cycles;
! //_pxa27x_perf_clear();
! DCSR(chnl) = val;
! //_pxa27x_perf_get(cycles);
! }
! async command uint32_t HplPXA27xDMAChnl.getDCSR[uint8_t chnl]() {return DCSR(chnl); }
! async command void HplPXA27xDMAChnl.setDCMD[uint8_t chnl](uint32_t val) {DCMD(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDCMD[uint8_t chnl]() {return DCMD(chnl); }
! async command void HplPXA27xDMAChnl.setDDADR[uint8_t chnl](uint32_t val) {DDADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDDADR[uint8_t chnl]() {return DDADR(chnl); }
! async command void HplPXA27xDMAChnl.setDSADR[uint8_t chnl](uint32_t val) {DSADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDSADR[uint8_t chnl]() {return DSADR(chnl); }
! async command void HplPXA27xDMAChnl.setDTADR[uint8_t chnl](uint32_t val) {DTADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDTADR[uint8_t chnl]() {return DTADR(chnl); }
!
! async event void DMAIrq.fired() {
! uint32_t IntReg;
! uint8_t chnl;
! IntReg = call HplPXA27xDMACntl.getDINT();
!
! while (IntReg) {
! chnl = 31 - _pxa27x_clzui(IntReg);
! signal HplPXA27xDMAChnl.interruptDMA[chnl]();
! IntReg &= ~(1 << chnl);
! }
! return;
! }
!
! default async event void HplPXA27xDMAChnl.interruptDMA[uint8_t chnl]() {
! call HplPXA27xDMAChnl.setDCMD[chnl](0);
! call HplPXA27xDMAChnl.setDCSR[chnl](DCSR_EORINT | DCSR_ENDINTR
! | DCSR_STARTINTR | DCSR_BUSERRINTR);
! }
! }
--- 1,128 ----
! /* $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 HplPXA27xDMAM
! {
! provides {
! interface Init;
! interface HplPXA27xDMACntl;
! interface HplPXA27xDMAChnl[uint8_t chnl];
! }
! uses {
! interface HplPXA27xInterrupt as DMAIrq;
! }
! }
!
! implementation
! {
!
! command error_t Init.init() {
! call DMAIrq.allocate();
! call DMAIrq.enable();
! return SUCCESS;
! }
!
! async command void HplPXA27xDMACntl.setDRCMR(uint8_t peripheral, uint8_t val) {
! DRCMR(peripheral) = val;
! }
! async command uint8_t HplPXA27xDMACntl.getDRCMR(uint8_t peripheral) { return DRCMR(peripheral);}
! async command void HplPXA27xDMACntl.setDALGN(uint32_t val) {DALGN = val;}
! async command uint32_t HplPXA27xDMACntl.getDALGN(uint32_t val) {return DALGN; }
! async command void HplPXA27xDMACntl.setDPCSR(uint32_t val) {DPCSR = val; }
! async command uint32_t HplPXA27xDMACntl.getDPSCR() {return DPCSR; }
! async command void HplPXA27xDMACntl.setDRQSR0(uint32_t val) {DRQSR0 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR0() {return DRQSR0; }
! async command void HplPXA27xDMACntl.setDRQSR1(uint32_t val) {DRQSR1 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR1() {return DRQSR1; }
! async command void HplPXA27xDMACntl.setDRQSR2(uint32_t val) {DRQSR2 = val; }
! async command uint32_t HplPXA27xDMACntl.getDRQSR2() {return DRQSR2; }
! async command uint32_t HplPXA27xDMACntl.getDINT() {return DINT; }
! async command void HplPXA27xDMACntl.setFLYCNFG(uint32_t val) {FLYCNFG = val; }
! async command uint32_t HplPXA27xDMACntl.getFLYCNFG() {return FLYCNFG; }
!
!
! async command error_t HplPXA27xDMAChnl.setMap[uint8_t chnl](uint8_t dev) {
! call HplPXA27xDMACntl.setDRCMR(dev,(DRCMR_MAPVLD | DRCMR_CHLNUM(chnl)));
! return SUCCESS;
! }
! async command void HplPXA27xDMAChnl.setDALGNbit[uint8_t chnl](bool flag) {
! if (flag) {
! DALGN |= (1 << chnl);
! }
! else {
! DALGN &= ~(1 << chnl);
! }
! return;
! }
! async command bool HplPXA27xDMAChnl.getDALGNbit[uint8_t chnl]() {
! return ((DALGN & (1 << chnl)) != 0);
! }
! async command bool HplPXA27xDMAChnl.getDINTbit[uint8_t chnl]() {
! return ((DINT & (1 << chnl)) != 0);
! }
! async command void HplPXA27xDMAChnl.setDCSR[uint8_t chnl](uint32_t val) {
! // uint32_t cycles;
! //_pxa27x_perf_clear();
! DCSR(chnl) = val;
! //_pxa27x_perf_get(cycles);
! }
! async command uint32_t HplPXA27xDMAChnl.getDCSR[uint8_t chnl]() {return DCSR(chnl); }
! async command void HplPXA27xDMAChnl.setDCMD[uint8_t chnl](uint32_t val) {DCMD(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDCMD[uint8_t chnl]() {return DCMD(chnl); }
! async command void HplPXA27xDMAChnl.setDDADR[uint8_t chnl](uint32_t val) {DDADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDDADR[uint8_t chnl]() {return DDADR(chnl); }
! async command void HplPXA27xDMAChnl.setDSADR[uint8_t chnl](uint32_t val) {DSADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDSADR[uint8_t chnl]() {return DSADR(chnl); }
! async command void HplPXA27xDMAChnl.setDTADR[uint8_t chnl](uint32_t val) {DTADR(chnl) = val; }
! async command uint32_t HplPXA27xDMAChnl.getDTADR[uint8_t chnl]() {return DTADR(chnl); }
!
! async event void DMAIrq.fired() {
! uint32_t IntReg;
! uint8_t chnl;
! IntReg = call HplPXA27xDMACntl.getDINT();
!
! while (IntReg) {
! chnl = 31 - _pxa27x_clzui(IntReg);
! signal HplPXA27xDMAChnl.interruptDMA[chnl]();
! IntReg &= ~(1 << chnl);
! }
! return;
! }
!
! default async event void HplPXA27xDMAChnl.interruptDMA[uint8_t chnl]() {
! call HplPXA27xDMAChnl.setDCMD[chnl](0);
! call HplPXA27xDMAChnl.setDCSR[chnl](DCSR_EORINT | DCSR_ENDINTR
! | DCSR_STARTINTR | DCSR_BUSERRINTR);
! }
! }
Index: HplPXA27xDMAChnl.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma/HplPXA27xDMAChnl.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplPXA27xDMAChnl.nc 12 Dec 2006 18:23:12 -0000 1.4
--- HplPXA27xDMAChnl.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,92 ****
! /* $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.
! */
! /* tab:4
! * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
! * downloading, copying, installing or using the software you agree to
! * this license. If you do not agree to this license, do not download,
! * install, copy or use the software.
! *
! * Intel Open Source License
! *
! * Copyright (c) 2002 Intel 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 Intel 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 INTEL 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.
! *
! *
! */
! /*
! *
! * Authors: Phil Buonadonna
! * Authors: Robbie Adler
! */
!
!
! interface HplPXA27xDMAChnl
! {
! async command error_t setMap(uint8_t dev);
! async command void setDALGNbit(bool flag);
! async command bool getDALGNbit();
! async command bool getDINTbit();
! async command void setDCSR(uint32_t val);
! async command uint32_t getDCSR();
! async command void setDCMD(uint32_t val);
! async command uint32_t getDCMD();
! async command void setDDADR(uint32_t val);
! async command uint32_t getDDADR();
! async command void setDSADR(uint32_t val);
! async command uint32_t getDSADR();
! async command void setDTADR(uint32_t val);
! async command uint32_t getDTADR();
! async event void interruptDMA();
! }
--- 1,92 ----
! /* $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.
! */
! /* tab:4
! * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
! * downloading, copying, installing or using the software you agree to
! * this license. If you do not agree to this license, do not download,
! * install, copy or use the software.
! *
! * Intel Open Source License
! *
! * Copyright (c) 2002 Intel 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 Intel 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 INTEL 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.
! *
! *
! */
! /*
! *
! * Authors: Phil Buonadonna
! * Authors: Robbie Adler
! */
!
!
! interface HplPXA27xDMAChnl
! {
! async command error_t setMap(uint8_t dev);
! async command void setDALGNbit(bool flag);
! async command bool getDALGNbit();
! async command bool getDINTbit();
! async command void setDCSR(uint32_t val);
! async command uint32_t getDCSR();
! async command void setDCMD(uint32_t val);
! async command uint32_t getDCMD();
! async command void setDDADR(uint32_t val);
! async command uint32_t getDDADR();
! async command void setDSADR(uint32_t val);
! async command uint32_t getDSADR();
! async command void setDTADR(uint32_t val);
! async command uint32_t getDTADR();
! async event void interruptDMA();
! }
Index: HplPXA27xDMAC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma/HplPXA27xDMAC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplPXA27xDMAC.nc 12 Dec 2006 18:23:12 -0000 1.4
--- HplPXA27xDMAC.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,87 ****
! /* $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 HplPXA27xDMAC
! {
! provides {
! interface HplPXA27xDMACntl;
! interface HplPXA27xDMAChnl[uint8_t chnl];
! }
! }
! implementation
! {
! components HplPXA27xDMAM;
! components HplPXA27xInterruptM;
! components PlatformP;
!
! HplPXA27xDMACntl = HplPXA27xDMAM;
!
! HplPXA27xDMAChnl[0] = HplPXA27xDMAM.HplPXA27xDMAChnl[0];
! HplPXA27xDMAChnl[1] = HplPXA27xDMAM.HplPXA27xDMAChnl[1];
! HplPXA27xDMAChnl[2] = HplPXA27xDMAM.HplPXA27xDMAChnl[2];
! HplPXA27xDMAChnl[3] = HplPXA27xDMAM.HplPXA27xDMAChnl[3];
! HplPXA27xDMAChnl[4] = HplPXA27xDMAM.HplPXA27xDMAChnl[4];
! HplPXA27xDMAChnl[5] = HplPXA27xDMAM.HplPXA27xDMAChnl[5];
! HplPXA27xDMAChnl[6] = HplPXA27xDMAM.HplPXA27xDMAChnl[6];
! HplPXA27xDMAChnl[7] = HplPXA27xDMAM.HplPXA27xDMAChnl[7];
! HplPXA27xDMAChnl[8] = HplPXA27xDMAM.HplPXA27xDMAChnl[8];
! HplPXA27xDMAChnl[9] = HplPXA27xDMAM.HplPXA27xDMAChnl[9];
! HplPXA27xDMAChnl[10] = HplPXA27xDMAM.HplPXA27xDMAChnl[10];
! HplPXA27xDMAChnl[11] = HplPXA27xDMAM.HplPXA27xDMAChnl[11];
! HplPXA27xDMAChnl[12] = HplPXA27xDMAM.HplPXA27xDMAChnl[12];
! HplPXA27xDMAChnl[13] = HplPXA27xDMAM.HplPXA27xDMAChnl[13];
! HplPXA27xDMAChnl[14] = HplPXA27xDMAM.HplPXA27xDMAChnl[14];
! HplPXA27xDMAChnl[15] = HplPXA27xDMAM.HplPXA27xDMAChnl[15];
! HplPXA27xDMAChnl[16] = HplPXA27xDMAM.HplPXA27xDMAChnl[16];
! HplPXA27xDMAChnl[17] = HplPXA27xDMAM.HplPXA27xDMAChnl[17];
! HplPXA27xDMAChnl[18] = HplPXA27xDMAM.HplPXA27xDMAChnl[18];
! HplPXA27xDMAChnl[19] = HplPXA27xDMAM.HplPXA27xDMAChnl[19];
! HplPXA27xDMAChnl[20] = HplPXA27xDMAM.HplPXA27xDMAChnl[20];
! HplPXA27xDMAChnl[21] = HplPXA27xDMAM.HplPXA27xDMAChnl[21];
! HplPXA27xDMAChnl[22] = HplPXA27xDMAM.HplPXA27xDMAChnl[22];
! HplPXA27xDMAChnl[23] = HplPXA27xDMAM.HplPXA27xDMAChnl[23];
! HplPXA27xDMAChnl[24] = HplPXA27xDMAM.HplPXA27xDMAChnl[24];
! HplPXA27xDMAChnl[25] = HplPXA27xDMAM.HplPXA27xDMAChnl[25];
! HplPXA27xDMAChnl[26] = HplPXA27xDMAM.HplPXA27xDMAChnl[26];
! HplPXA27xDMAChnl[27] = HplPXA27xDMAM.HplPXA27xDMAChnl[27];
! HplPXA27xDMAChnl[28] = HplPXA27xDMAM.HplPXA27xDMAChnl[28];
! HplPXA27xDMAChnl[29] = HplPXA27xDMAM.HplPXA27xDMAChnl[29];
! HplPXA27xDMAChnl[30] = HplPXA27xDMAM.HplPXA27xDMAChnl[30];
! HplPXA27xDMAChnl[31] = HplPXA27xDMAM.HplPXA27xDMAChnl[31];
!
! HplPXA27xDMAM.Init <- PlatformP.InitL1;
!
! HplPXA27xDMAM.DMAIrq -> HplPXA27xInterruptM.PXA27xIrq[PPID_DMAC];
!
! }
--- 1,87 ----
! /* $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 HplPXA27xDMAC
! {
! provides {
! interface HplPXA27xDMACntl;
! interface HplPXA27xDMAChnl[uint8_t chnl];
! }
! }
! implementation
! {
! components HplPXA27xDMAM;
! components HplPXA27xInterruptM;
! components PlatformP;
!
! HplPXA27xDMACntl = HplPXA27xDMAM;
!
! HplPXA27xDMAChnl[0] = HplPXA27xDMAM.HplPXA27xDMAChnl[0];
! HplPXA27xDMAChnl[1] = HplPXA27xDMAM.HplPXA27xDMAChnl[1];
! HplPXA27xDMAChnl[2] = HplPXA27xDMAM.HplPXA27xDMAChnl[2];
! HplPXA27xDMAChnl[3] = HplPXA27xDMAM.HplPXA27xDMAChnl[3];
! HplPXA27xDMAChnl[4] = HplPXA27xDMAM.HplPXA27xDMAChnl[4];
! HplPXA27xDMAChnl[5] = HplPXA27xDMAM.HplPXA27xDMAChnl[5];
! HplPXA27xDMAChnl[6] = HplPXA27xDMAM.HplPXA27xDMAChnl[6];
! HplPXA27xDMAChnl[7] = HplPXA27xDMAM.HplPXA27xDMAChnl[7];
! HplPXA27xDMAChnl[8] = HplPXA27xDMAM.HplPXA27xDMAChnl[8];
! HplPXA27xDMAChnl[9] = HplPXA27xDMAM.HplPXA27xDMAChnl[9];
! HplPXA27xDMAChnl[10] = HplPXA27xDMAM.HplPXA27xDMAChnl[10];
! HplPXA27xDMAChnl[11] = HplPXA27xDMAM.HplPXA27xDMAChnl[11];
! HplPXA27xDMAChnl[12] = HplPXA27xDMAM.HplPXA27xDMAChnl[12];
! HplPXA27xDMAChnl[13] = HplPXA27xDMAM.HplPXA27xDMAChnl[13];
! HplPXA27xDMAChnl[14] = HplPXA27xDMAM.HplPXA27xDMAChnl[14];
! HplPXA27xDMAChnl[15] = HplPXA27xDMAM.HplPXA27xDMAChnl[15];
! HplPXA27xDMAChnl[16] = HplPXA27xDMAM.HplPXA27xDMAChnl[16];
! HplPXA27xDMAChnl[17] = HplPXA27xDMAM.HplPXA27xDMAChnl[17];
! HplPXA27xDMAChnl[18] = HplPXA27xDMAM.HplPXA27xDMAChnl[18];
! HplPXA27xDMAChnl[19] = HplPXA27xDMAM.HplPXA27xDMAChnl[19];
! HplPXA27xDMAChnl[20] = HplPXA27xDMAM.HplPXA27xDMAChnl[20];
! HplPXA27xDMAChnl[21] = HplPXA27xDMAM.HplPXA27xDMAChnl[21];
! HplPXA27xDMAChnl[22] = HplPXA27xDMAM.HplPXA27xDMAChnl[22];
! HplPXA27xDMAChnl[23] = HplPXA27xDMAM.HplPXA27xDMAChnl[23];
! HplPXA27xDMAChnl[24] = HplPXA27xDMAM.HplPXA27xDMAChnl[24];
! HplPXA27xDMAChnl[25] = HplPXA27xDMAM.HplPXA27xDMAChnl[25];
! HplPXA27xDMAChnl[26] = HplPXA27xDMAM.HplPXA27xDMAChnl[26];
! HplPXA27xDMAChnl[27] = HplPXA27xDMAM.HplPXA27xDMAChnl[27];
! HplPXA27xDMAChnl[28] = HplPXA27xDMAM.HplPXA27xDMAChnl[28];
! HplPXA27xDMAChnl[29] = HplPXA27xDMAM.HplPXA27xDMAChnl[29];
! HplPXA27xDMAChnl[30] = HplPXA27xDMAM.HplPXA27xDMAChnl[30];
! HplPXA27xDMAChnl[31] = HplPXA27xDMAM.HplPXA27xDMAChnl[31];
!
! HplPXA27xDMAM.Init <- PlatformP.InitL1;
!
! HplPXA27xDMAM.DMAIrq -> HplPXA27xInterruptM.PXA27xIrq[PPID_DMAC];
!
! }
Index: HplPXA27xDMAInfo.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma/HplPXA27xDMAInfo.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplPXA27xDMAInfo.nc 12 Dec 2006 18:23:12 -0000 1.4
--- HplPXA27xDMAInfo.nc 11 Jun 2008 00:42:14 -0000 1.5
***************
*** 1,64 ****
! /* $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.
! */
! /*
! * This interface is to be PROVIDED by peripheral HPL components that
! * are DMA-able. It is used to provide information to higher level
! * components (e.g. HalX) that may implement higher level peripheral
! * functions using DMA.
! *
! * Instantiate the interface multiple times according to how many
! * I/O addresses a peripheral has that may be assigned to a DMA
! * src/tgt address register.
! *
! * Authors: Phil Buonadonna
! *
! */
!
!
! interface HplPXA27xDMAInfo
! {
! /**
! * Returns a single DMAable address for a peripheral.
! *
! * @return addr The 32 bit address of the peripheral register
! * of interest.
! */
! async command uint32_t getAddr();
!
! /**
! * Returns the DMA map index that is associated with the getAddr()
! * function.
! *
! * @return index The DMA map register index that is associated with
! * the getAddr function.
! */
! async command uint8_t getMapIndex();
! }
--- 1,64 ----
! /* $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.
! */
! /*
! * This interface is to be PROVIDED by peripheral HPL components that
! * are DMA-able. It is used to provide information to higher level
! * components (e.g. HalX) that may implement higher level peripheral
! * functions using DMA.
! *
! * Instantiate the interface multiple times according to how many
! * I/O addresses a peripheral has that may be assigned to a DMA
! * src/tgt address register.
! *
! * Authors: Phil Buonadonna
! *
! */
!
!
! interface HplPXA27xDMAInfo
! {
! /**
! * Returns a single DMAable address for a peripheral.
! *
! * @return addr The 32 bit address of the peripheral register
! * of interest.
! */
! async command uint32_t getAddr();
!
! /**
! * Returns the DMA map index that is associated with the getAddr()
! * function.
! *
! * @return index The DMA map register index that is associated with
! * the getAddr function.
! */
! async command uint8_t getMapIndex();
! }
Index: HplPXA27xDMACntl.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/dma/HplPXA27xDMACntl.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplPXA27xDMACntl.nc 12 Dec 2006 18:23:12 -0000 1.4
--- HplPXA27xDMACntl.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.
! */
! /*
! *
! * Authors: Phil Buonadonna
! *
! */
!
!
! interface HplPXA27xDMACntl
! {
! async command void setDRCMR(uint8_t peripheral, uint8_t chnl);
! async command uint8_t getDRCMR(uint8_t peripheral);
! async command void setDALGN(uint32_t val);
! async command uint32_t getDALGN(uint32_t val);
! async command void setDPCSR(uint32_t val);
! async command uint32_t getDPSCR();
! async command void setDRQSR0(uint32_t val);
! async command uint32_t getDRQSR0();
! async command void setDRQSR1(uint32_t val);
! async command uint32_t getDRQSR1();
! async command void setDRQSR2(uint32_t val);
! async command uint32_t getDRQSR2();
! async command uint32_t getDINT();
! async command void setFLYCNFG(uint32_t val);
! async command uint32_t getFLYCNFG();
! }
--- 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.
! */
! /*
! *
! * Authors: Phil Buonadonna
! *
! */
!
!
! interface HplPXA27xDMACntl
! {
! async command void setDRCMR(uint8_t peripheral, uint8_t chnl);
! async command uint8_t getDRCMR(uint8_t peripheral);
! async command void setDALGN(uint32_t val);
! async command uint32_t getDALGN(uint32_t val);
! async command void setDPCSR(uint32_t val);
! async command uint32_t getDPSCR();
! async command void setDRQSR0(uint32_t val);
! async command uint32_t getDRQSR0();
! async command void setDRQSR1(uint32_t val);
! async command uint32_t getDRQSR1();
! async command void setDRQSR2(uint32_t val);
! async command uint32_t getDRQSR2();
! async command uint32_t getDINT();
! async command void setFLYCNFG(uint32_t val);
! async command uint32_t getFLYCNFG();
! }
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/sensorboards/im2sb im2sb.h, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/i2c HalPXA27xI2CMasterP.nc, 1.4, 1.5 HplPXA27xI2CP.nc, 1.4, 1.5 HplPXA27xPI2CC.nc, 1.4, 1.5 HalPXA27xI2CMasterC.nc, 1.4, 1.5 HplPXA27xI2CC.nc, 1.4, 1.5 HplPXA27xI2C.nc, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list