doppler shift / Mbed 2 deprecated 0xXX_complete

Dependencies:   mbed

Committer:
ryouheitakamoto
Date:
Fri Dec 11 06:59:04 2020 +0000
Revision:
3:aaeea2abc917
Parent:
2:98f6cc48ca3a
Child:
4:15644c0e4310
aaa; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ryouheitakamoto 0:303ad425d2ac 1 #include "mbed.h"
ryouheitakamoto 0:303ad425d2ac 2
KINU 1:03cb3b25065c 3 Serial pc(SERIAL_TX, SERIAL_RX);
KINU 1:03cb3b25065c 4 Serial device(PA_9,PA_10);
KINU 2:98f6cc48ca3a 5 int main()
KINU 2:98f6cc48ca3a 6 {
KINU 2:98f6cc48ca3a 7
KINU 2:98f6cc48ca3a 8 while(1) {
KINU 2:98f6cc48ca3a 9 char c = device.getc();
KINU 1:03cb3b25065c 10
ryouheitakamoto 3:aaeea2abc917 11 if(c == 0xFE) {
KINU 2:98f6cc48ca3a 12 pc.printf("%02hhx \n",c);
ryouheitakamoto 3:aaeea2abc917 13 while(1) {
ryouheitakamoto 3:aaeea2abc917 14 c = device.getc();
ryouheitakamoto 3:aaeea2abc917 15 if(c != 0xFD)
ryouheitakamoto 3:aaeea2abc917 16 pc.printf("%02hhx \n",c);
ryouheitakamoto 3:aaeea2abc917 17 else {
ryouheitakamoto 3:aaeea2abc917 18 pc.printf("%02hhx \n",c);
ryouheitakamoto 3:aaeea2abc917 19 break;
ryouheitakamoto 3:aaeea2abc917 20 }
ryouheitakamoto 3:aaeea2abc917 21 }
KINU 2:98f6cc48ca3a 22 }
ryouheitakamoto 0:303ad425d2ac 23 }
KINU 2:98f6cc48ca3a 24 }
KINU 2:98f6cc48ca3a 25
KINU 2:98f6cc48ca3a 26
ryouheitakamoto 3:aaeea2abc917 27