command void AMPacket.setType(message_t* amsg, am_id_t t) {
}
+ command am_addr_t AMPacket.source(message_t* amsg) {
+ return 0;
+ }
+
+ command void AMPacket.setSource(message_t* amsg, am_addr_t addr) { }
+
command void* Receive.getPayload[uint8_t id](message_t* msg, uint8_t* len) {
return NULL;
}
async command void Led2.makeOutput() {
call Init.init();
}
+
+ async command bool Led0.isInput() {
+ return FALSE;
+ }
+
+ async command bool Led0.isOutput() {
+ return FALSE;
+ }
+
+ async command bool Led1.isInput() {
+ return FALSE;
+ }
+
+ async command bool Led1.isOutput() {
+ return FALSE;
+ }
+
+ async command bool Led2.isInput() {
+ return FALSE;
+ }
+
+ async command bool Led2.isOutput() {
+ return FALSE;
+ }
+
}
*/
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;
}
}