-
- async command void UartControl.setModeRx[ uint8_t id ]() {
- msp430_uart_config_t* config = call Msp430UartConfigure.getConfig[id]();
- m_byte_time = config->ubr / 2;
- call Usart.setModeUartRx(config);
- call Usart.clrIntr();
- call Usart.enableRxIntr();
- }
-
- async command void UartControl.setModeTx[ uint8_t id ]() {
- call Usart.setModeUartTx(call Msp430UartConfigure.getConfig[id]());
- call Usart.clrIntr();
- call Usart.enableTxIntr();
- }
-
- async command void UartControl.setModeDuplex[ uint8_t id ]() {
- msp430_uart_config_t* config = call Msp430UartConfigure.getConfig[id]();
- m_byte_time = config->ubr / 2;
- call Usart.setModeUart(config);
- call Usart.clrIntr();
- call Usart.enableIntr();
- }