Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- Yokiru
- Date:
- 2019-10-05
- Revision:
- 2:970cd691d7de
- Parent:
- 0:b3a90cb05638
File content as of revision 2:970cd691d7de:
#include "mbed.h" #include "get_uart.h" #include "dev16_m_common_number.h" #include "decode_uart.h" Serial pc(USBTX, USBRX); // tx, rx GetUART prs48; Decode_UART uart; u8 flag_uart_cs=0; u8 num_uart[LENGTH_UART_DATA]={0}; u8 mis_command[LENGTH_MISSION_COMMAND]={0}; u8 flag_uart_timeout=0; int main() { pc.baud(115200); pc.printf("start\r\n"); while(1) { prs48.rcv_uart_data_B2M(); for(int i=0;i<LENGTH_UART_DATA;i++){ pc.printf("%02x",num_uart[i]); } pc.printf("\r\n"); uart.decode_uart(num_uart); } }