*/
module PlatformSerialC {
- provides interface Init;
provides interface StdControl;
- provides interface SerialByteComm;
+ provides interface UartByte;
+ provides interface UartStream;
}
implementation {
- async command error_t SerialByteComm.put(uint8_t data) {
+ command error_t StdControl.start() {
return SUCCESS;
}
- command error_t Init.init() {
+ command error_t StdControl.stop() {
return SUCCESS;
}
- command error_t StdControl.start() {
+ async command error_t UartByte.send( uint8_t byte ) {
return SUCCESS;
}
- command error_t StdControl.stop() {
+ async command error_t UartByte.receive( uint8_t* byte, uint8_t timeout ) {
+ return SUCCESS;
+ }
+
+ async command error_t UartStream.send( uint8_t* buf, uint16_t len ) {
+ return SUCCESS;
+ }
+
+ async command error_t UartStream.enableReceiveInterrupt() {
+ return SUCCESS;
+ }
+
+ async command error_t UartStream.disableReceiveInterrupt() {
+ return SUCCESS;
+ }
+
+ async command error_t UartStream.receive( uint8_t* buf, uint16_t len ) {
return SUCCESS;
}
}