111
Dependencies: yezhong_main_controller_copy mbed1-dev
DATA_PC/data_pc.h@9:c082f1c52936, 2022-07-07 (annotated)
- Committer:
- ganlikun
- Date:
- Thu Jul 07 11:38:10 2022 +0000
- Revision:
- 9:c082f1c52936
- Parent:
- 0:d80c66cb1b3a
112
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
panzhan | 0:d80c66cb1b3a | 1 | #ifndef _DATA_PC_H |
panzhan | 0:d80c66cb1b3a | 2 | #define _DATA_PC_H |
panzhan | 0:d80c66cb1b3a | 3 | |
panzhan | 0:d80c66cb1b3a | 4 | #include "mbed.h" |
panzhan | 0:d80c66cb1b3a | 5 | |
panzhan | 0:d80c66cb1b3a | 6 | extern Serial pc; // tx, rx U2 min |
panzhan | 0:d80c66cb1b3a | 7 | |
panzhan | 0:d80c66cb1b3a | 8 | extern int pc_control; // 命令帧标志位 |
panzhan | 0:d80c66cb1b3a | 9 | //extern unsigned int flag_A, flag_B; |
panzhan | 0:d80c66cb1b3a | 10 | //extern unsigned int pc_num; |
panzhan | 0:d80c66cb1b3a | 11 | |
panzhan | 0:d80c66cb1b3a | 12 | //extern uint16_t phase_flag_get[1]; |
panzhan | 0:d80c66cb1b3a | 13 | extern uint16_t phase_flag_use[1]; |
panzhan | 0:d80c66cb1b3a | 14 | extern unsigned int phase_flag; |
panzhan | 0:d80c66cb1b3a | 15 | |
panzhan | 0:d80c66cb1b3a | 16 | void pc_decode(); |
panzhan | 0:d80c66cb1b3a | 17 | void pc_clear(); |
panzhan | 0:d80c66cb1b3a | 18 | void serial_pc_isr(); |
panzhan | 0:d80c66cb1b3a | 19 | |
panzhan | 0:d80c66cb1b3a | 20 | #endif |