第一版代码,为了在EEPROM保存参数的时候走STM32的CRC,让Codex修改了一下,现在的效果是无法存储,codex表示原因是CRC方法不同,修改到一半今天的额度使用完了,有待后续解决CRC的bug
This commit is contained in:
16
Common/Com_debug.c
Normal file
16
Common/Com_debug.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Com_debug.h"
|
||||
|
||||
/**
|
||||
* @brief 日志输出初始化
|
||||
*
|
||||
*/
|
||||
void Com_debug_init(void)
|
||||
{
|
||||
// MX_USART1_UART_Init();
|
||||
}
|
||||
|
||||
int fputc(int ch, FILE *f)
|
||||
{
|
||||
HAL_UART_Transmit(&huart5, (uint8_t *)&ch, 1, 0xFFFF);
|
||||
return ch;
|
||||
}
|
||||
Reference in New Issue
Block a user