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.

29 lines
566 B

  1. #include <stdbool.h>
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include "lwip/opt.h"
  6. #include "lwip/sys.h"
  7. #include "lwip/api.h"
  8. #include "main.h"
  9. #include "zport.h"
  10. #include "zboard.h"
  11. #include "encoder.h"
  12. #include "udpclient.h"
  13. void user_main()
  14. {
  15. encoder_start();
  16. udp_client_init();
  17. printf("==============ethernet_sound_acquisition_card=============\r\n");
  18. printf("version %d.%d", VERSION_MAIN_ID, VERSION_SUB_ID);
  19. while (1)
  20. {
  21. udp_client_recv();
  22. encoder_read_printf();
  23. port_do_debug_light_state();
  24. osDelay(1);
  25. }
  26. }