| 71 | } |
| 72 | |
| 73 | static rt_uint8_t rt_link_check_seq(rt_uint8_t new, rt_uint8_t used) |
| 74 | { |
| 75 | rt_int16_t compare_seq = 0; |
| 76 | compare_seq = new - used; |
| 77 | if (compare_seq < 0) |
| 78 | { |
| 79 | compare_seq = compare_seq + 256; |
| 80 | } |
| 81 | return (rt_uint8_t)compare_seq; |
| 82 | } |
| 83 | |
| 84 | static int rt_link_frame_init(struct rt_link_frame *frame, rt_uint8_t config) |
| 85 | { |
no outgoing calls
no test coverage detected