X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2FeyesIFX%2Fchips%2Ftda5250%2FHplTda5250DataIOP.nc;h=2e1ed40af8ef9ba22be917802537926d1f2727e1;hb=337d0b13acf569c2640b3ed7b7f5c7cec35d7ddd;hp=97860d47833c1ffcc4b7f0b2e60ac010ed5fbf0d;hpb=1a329382c4f4556fd52d85f4e3f4a67e54911682;p=tinyos-2.x.git diff --git a/tos/platforms/eyesIFX/chips/tda5250/HplTda5250DataIOP.nc b/tos/platforms/eyesIFX/chips/tda5250/HplTda5250DataIOP.nc index 97860d47..2e1ed40a 100644 --- a/tos/platforms/eyesIFX/chips/tda5250/HplTda5250DataIOP.nc +++ b/tos/platforms/eyesIFX/chips/tda5250/HplTda5250DataIOP.nc @@ -44,24 +44,27 @@ module HplTda5250DataIOP { interface HplTda5250DataControl as UartDataControl; interface Msp430UartConfigure as UartResourceConfigure; } - uses { - interface Msp430UartControl; - } } implementation { async command error_t UartDataControl.setToTx() { - call Msp430UartControl.setModeTx(); + atomic { + tda5250_uart_config.uartConfig.utxe = 1; + tda5250_uart_config.uartConfig.urxe = 0; + } return SUCCESS; } async command error_t UartDataControl.setToRx() { - call Msp430UartControl.setModeRx(); + atomic { + tda5250_uart_config.uartConfig.utxe = 0; + tda5250_uart_config.uartConfig.urxe = 1; + } return SUCCESS; } - async command msp430_uart_config_t* UartResourceConfigure.getConfig() { + async command msp430_uart_union_config_t* UartResourceConfigure.getConfig() { return &tda5250_uart_config; }