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.

22 lines
292 B

2 years ago
  1. #include <stdbool.h>
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include "main.h"
  6. #include "usart.h"
  7. int fputc(int ch, FILE *stream)
  8. {
  9. uint8_t c = ch;
  10. HAL_UART_Transmit(&huart1, &c, 1, 100);
  11. return ch;
  12. }
  13. void user_main()
  14. {
  15. while (1)
  16. {
  17. printf("ok\r\n");
  18. }
  19. }