一、华大的库
hc32l13x_ddl_Rev1.9.2 Lite
1.打开 hc32l13x_ddl_Rev1.9.2 Lite\driver\src\ddl.c 约208行
#if defined (__CC_ARM) //KEIL
#pragma import(__use_no_semihosting)
void _sys_exit(int x)
{
x = x;
}
struct __FILE
{
int handle;
/* Whatever you require here. If the only file you are using is */
/* standard output using printf() for debugging, no file handling */
/* is required. */
};
/* FILE is typedef?d in stdio.h. */
FILE __stdout;
#endif
#ifdef __DEBUG
/**
******************************************************************************
** \brief Re-target putchar function
******************************************************************************/
int fputc(int ch, FILE *f)
{
if ((

博客内容涉及了对HC32L136K8微控制器的串口0初始化过程,通过宏定义选择不同的PIN配置,并实现了printf函数的重定向,以使用串口进行输出。在main函数中进行了测试,打印出指定字符串并进行延迟。
最低0.47元/天 解锁文章
1785

被折叠的 条评论
为什么被折叠?



