解决usart_senddata函数隐式声明的方法取决于具体原因,以下是一些常见的解决方法: 包含相应的头文件: 确保在调用usart_senddata函数之前包含了定义它的头文件。 c #include "usart.h" // 假设usart_senddata函数在usart.h中声明 使用extern关键字声明: 如果usart_senddata函数定义在其他文件中,可以在当前文件中使用ex...
#include "usart.h" #include "wdg.h" int main(void) { delay_init(); NVIC_Configuration(); LED_Init(); KEY_Init(); LED0=1; delay_ms(300); WWDG_Init(0X7F,0X5F,WWDG_Prescaler_8); while(1) { LED0=0; } } wdg.h/// #ifndef __WDG_H #define __WDG_H #include "stm32f10x...