| 544 | } |
| 545 | |
| 546 | static rt_err_t rt_link_long_handle(struct rt_link_frame *receive_frame) |
| 547 | { |
| 548 | if (rt_link_scb->rx_record.long_count == 0) |
| 549 | { |
| 550 | /* Receive this long package for the first time: |
| 551 | * calculates the total number of frames, |
| 552 | * requests space, and turns on the receive timer */ |
| 553 | _long_handle_first(receive_frame); |
| 554 | } |
| 555 | if (rt_link_scb->rx_record.total > 0) |
| 556 | { |
| 557 | /* Intermediate frame processing: |
| 558 | * serial number repeated check, |
| 559 | * receive completion check, reply to ACK */ |
| 560 | _long_handle_second(receive_frame); |
| 561 | } |
| 562 | receive_frame->real_data = RT_NULL; |
| 563 | return RT_EOK; |
| 564 | } |
| 565 | |
| 566 | static rt_err_t rt_link_handshake_handle(struct rt_link_frame *receive_frame) |
| 567 | { |
no test coverage detected