library for implementing ir transmission

Revision:
2:2eb0a3a29b5b
Parent:
1:ae1d2167a10c
Child:
3:823708586b3e
--- a/XMIT_IR.cpp	Sat Oct 06 01:44:32 2012 +0000
+++ b/XMIT_IR.cpp	Sat Oct 06 02:45:52 2012 +0000
@@ -2,7 +2,6 @@
 #include "XMIT_IR.h"
 
 
-
 IRTransmitter::IRTransmitter(PinName TX, PinName PWM, PinName RX, int data_buff_len, void (*fptr)(void))
 {
     ir_serial = new Serial(TX,RX);
@@ -66,4 +65,11 @@
 
 }
 
+void IRTransmitter::isr(char data)
+{
+    char* mail = ir_data_mailbox.alloc();
+    mail[0] = (char)data;
+    ir_data_mailbox.put(mail);
+}
 
+