fuji-usart

Dependencies:   mbed

Revision:
2:6a8450240660
Parent:
1:05be68058127
--- a/main.cpp	Sat Feb 22 07:14:15 2014 +0000
+++ b/main.cpp	Sat Feb 22 07:21:26 2014 +0000
@@ -1,2 +1,9 @@
 Serial sensor(p13,p14);
-Serial pc(USBTX, USBRX);
\ No newline at end of file
+Serial pc(USBTX, USBRX);
+
+int main(){
+    //送信開始
+    sensor.putc(1);
+    //送信空き割り込み設定
+    sensor.attach(&micon_tx,Serial::TxIrq);
+}
\ No newline at end of file