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
22 lines
292 B
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "main.h"
|
|
#include "usart.h"
|
|
|
|
int fputc(int ch, FILE *stream)
|
|
{
|
|
uint8_t c = ch;
|
|
HAL_UART_Transmit(&huart1, &c, 1, 100);
|
|
return ch;
|
|
}
|
|
|
|
void user_main()
|
|
{
|
|
|
|
while (1)
|
|
{
|
|
printf("ok\r\n");
|
|
}
|
|
}
|