[Tinyos-2-commits]
CVS: tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250
HplTda5250DataIOC.nc, NONE, 1.1.2.1 HplTda5250DataIOP.nc, NONE,
1.1.2.1 HplTda5250DataC.nc, 1.1.2.7,
NONE Tda5250BusResourceConfigureP.nc, 1.1.2.1,
NONE tda5250BusResourceId.h, 1.1.2.2, NONE
Philipp Huppertz
phihup at users.sourceforge.net
Wed Aug 9 06:17:09 PDT 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/tda5250
HplTda5250DataC.nc, NONE, 1.1.2.1 HplTda5250DataControl.nc,
NONE, 1.1.2.1 HplTda5250Data.nc, 1.1.2.4,
1.1.2.5 HplTda5250DataP.nc, 1.1.2.7, 1.1.2.8 Tda5250RadioC.nc,
1.1.2.6, 1.1.2.7 Tda5250RadioP.nc, 1.1.2.8, 1.1.2.9
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/xe1205 XE1205.h,
1.1.2.1, 1.1.2.2 XE1205ActiveMessageP.nc, 1.1.2.1, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX/chips/tda5250
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv2366/tos/platforms/eyesIFX/chips/tda5250
Added Files:
Tag: tinyos-2_0_devel-BRANCH
HplTda5250DataIOC.nc HplTda5250DataIOP.nc
Removed Files:
Tag: tinyos-2_0_devel-BRANCH
HplTda5250DataC.nc Tda5250BusResourceConfigureP.nc
tda5250BusResourceId.h
Log Message:
- restructured the wiring of the tda5250 components with the msp430 uart abstraction
--- NEW FILE: HplTda5250DataIOC.nc ---
/*
* Copyright (c) 2004, Technische Universitat Berlin
* 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 Technische Universitat Berlin 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 COPYRIGHT
* OWNER OR 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.
* - Revision -------------------------------------------------------------
* $Revision: 1.1.2.1 $
* $Date: 2006/08/09 13:17:07 $
* ========================================================================
*/
/**
* Wiring the TDA5250 with the Msp430 Uart abstraction.
*
* @author Philipp Hupertz (huppertz at tkn.tu-berlin.de)
*/
configuration HplTda5250DataIOC {
provides {
interface Resource;
// interfcace ResourceRequested;
interface SerialByteComm;
interface HplTda5250DataControl;
}
}
implementation {
components
new Msp430Uart0C(),
HplTda5250DataIOP;
Resource = Msp430Uart0C.Resource;
// ResourceRequested = Msp430Uart0C.ResourceRequested
SerialByteComm = Msp430Uart0C.SerialByteComm;
HplTda5250DataControl = HplTda5250DataIOP;
HplTda5250DataIOP.UartResource -> Msp430Uart0C.Resource;
HplTda5250DataIOP.UartControl -> Msp430Uart0C.UartControl;
HplTda5250DataIOP.UartResourceConfigure <- Msp430Uart0C.Msp430UartConfigure;
}
--- NEW FILE: HplTda5250DataIOP.nc ---
/*
* Copyright (c) 2004, Technische Universitat Berlin
* 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 Technische Universitat Berlin 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 COPYRIGHT
* OWNER OR 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.
* - Revision -------------------------------------------------------------
* $Revision: 1.1.2.1 $
* $Date: 2006/08/09 13:17:07 $
* ========================================================================
*/
#include "msp430usart.h"
#include "tda5250BusResourceSettings.h"
/**
* Wrapper module for the Msp430 Uart abstraction.
*
* @author Philipp Hupertz (huppertz at tkn.tu-berlin.de)
*/
module HplTda5250DataIOP {
provides {
interface HplTda5250DataControl;
interface Msp430UartConfigure as UartResourceConfigure;
}
uses {
interface Msp430UartControl as UartControl;
interface Resource as UartResource;
}
}
implementation {
async command error_t HplTda5250DataControl.setToTx() {
if(call UartResource.isOwner() == FALSE)
return FAIL;
call UartControl.setModeTx();
return SUCCESS;
}
async command error_t HplTda5250DataControl.setToRx() {
if(call UartResource.isOwner() == FALSE)
return FAIL;
call UartControl.setModeRx();
return SUCCESS;
}
async command msp430_uart_config_t* UartResourceConfigure.getConfig() {
return &tda5250_uart_config;
}
/* don't touch this */
event void UartResource.granted() {};
}
--- HplTda5250DataC.nc DELETED ---
--- Tda5250BusResourceConfigureP.nc DELETED ---
--- tda5250BusResourceId.h DELETED ---
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/tda5250
HplTda5250DataC.nc, NONE, 1.1.2.1 HplTda5250DataControl.nc,
NONE, 1.1.2.1 HplTda5250Data.nc, 1.1.2.4,
1.1.2.5 HplTda5250DataP.nc, 1.1.2.7, 1.1.2.8 Tda5250RadioC.nc,
1.1.2.6, 1.1.2.7 Tda5250RadioP.nc, 1.1.2.8, 1.1.2.9
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/xe1205 XE1205.h,
1.1.2.1, 1.1.2.2 XE1205ActiveMessageP.nc, 1.1.2.1, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list