mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix warning about fputc
This commit is contained in:
parent
8c9d281be4
commit
6a7bcabdef
@ -67,16 +67,16 @@ void HARDWARE_PRINTF_Init(void) {
|
|||||||
LL_USART_EnableIT_RXNE(USART1);
|
LL_USART_EnableIT_RXNE(USART1);
|
||||||
LL_USART_EnableIT_PE(USART1);
|
LL_USART_EnableIT_PE(USART1);
|
||||||
}
|
}
|
||||||
#pragma import(__use_no_semihosting)
|
//#pragma import(__use_no_semihosting)
|
||||||
void _sys_exit(int x) {
|
//void _sys_exit(int x) {
|
||||||
x = x;
|
// x = x;
|
||||||
}
|
//}
|
||||||
|
|
||||||
struct __FILE{
|
//struct __FILE{
|
||||||
int handle;
|
// int handle;
|
||||||
};
|
//};
|
||||||
|
|
||||||
FILE __stdout;
|
//FILE __stdout;
|
||||||
int fputc(int ch, FILE* f) {
|
int fputc(int ch, FILE* f) {
|
||||||
LL_USART_TransmitData8(USART1, ch);
|
LL_USART_TransmitData8(USART1, ch);
|
||||||
while (LL_USART_IsActiveFlag_TC(USART1) != 1)
|
while (LL_USART_IsActiveFlag_TC(USART1) != 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user