Hajime Muraki
/
usart
fuji-usart
Revision 2:6a8450240660, committed 2014-02-22
- Comitter:
- com3
- Date:
- Sat Feb 22 07:21:26 2014 +0000
- Parent:
- 1:05be68058127
- Commit message:
- usart
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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