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.

33 lines
624 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. #include "zflash.h"
  14. #include "config.h"
  15. void user_main()
  16. {
  17. printf("==============ethernet_sound_acquisition_card=============\r\n");
  18. printf("version %d.%d", VERSION_MAIN_ID, VERSION_SUB_ID);
  19. encoder_start();
  20. udp_client_init();
  21. config_init();
  22. while (1)
  23. {
  24. udp_client_recv();
  25. encoder_read_printf();
  26. port_do_debug_light_state();
  27. osDelay(1);
  28. }
  29. }