You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
637 B

  1. #include <stdbool.h>
  2. #include "./Processer/tjc_screen_receive.h"
  3. #include "./module/feite_servo/servo_package_process.h"
  4. #include "usart.h"
  5. static uint8_t rx_cache;
  6. /*
  7. *
  8. * @brief жϻص
  9. *
  10. */
  11. void HAL_UART_RxCpltCallback(UART_HandleTypeDef* huart) {
  12. if (huart == &huart2) {
  13. // ����
  14. tjc_uart_receive();
  15. }
  16. if (huart == &huart2) {
  17. // ����
  18. HAL_UART_Receive_IT(huart, &rx_cache, 1);
  19. }
  20. }
  21. //�����жϴ���
  22. void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size){
  23. if (huart == &huart3) {
  24. //get_rx_size(Size);
  25. SET_IDEL_FLAG();
  26. }
  27. if (huart == &huart3) {
  28. // ����
  29. }
  30. }