1.在main.C中 需要调用usaer。h文件
2.uart2_init函数不能有static关键词
main函数没有包含到你的这个函数定义,看下.h里面有这个函数的定义吗?或者是不是吧函数设置成静态了