摘要: ..\OBJ\TPAD.axf: Error: L6218E: Undefined symbol TAPD_Scan (referred from main.o). Not enough inform TPAD中H文件没有定义TAPD_Scan(实际上定义了。只不过写错了函数。u8 TPAD_Sca 阅读全文
posted @ 2018-04-09 22:24 KING9 阅读(299) 评论(0) 推荐(0) 编辑
摘要: #include "sys.h"#include "delay.h"#include "usart.h"#include "led.h"#include "tpad.h" int main(void){ u8 t=0; NVIC_PriorityGroupConfig(NVIC_PriorityGr 阅读全文
posted @ 2018-04-08 21:54 KING9 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: #include "timer.h"#include "led.h"#include "usart.h" //TIM14 PWM部分初始化 //PWM输出初始化//arr:自动重装值//psc:时钟预分频数void TIM14_PWM_Init(u32 arr,u32 psc){ //此部分需手动修 阅读全文
posted @ 2018-04-07 22:43 KING9 阅读(591) 评论(0) 推荐(0) 编辑
摘要: #include "stm32f4xx.h"#include "sys.h"#include "delay.h"#include "usart.h"#include "led.h"#include "timer.h" int main(void){ NVIC_PriorityGroupConfig( 阅读全文
posted @ 2018-04-03 21:49 KING9 阅读(2210) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stm32f4xx.h" 2 #include "sys.h" 3 #include "delay.h" 4 #include "usart.h" 5 #include "led.h" 6 #include "key.h" 7 #include "wwdg.h" 8 10 int main(void){ 11 12 NVIC... 阅读全文
posted @ 2018-04-02 22:25 KING9 阅读(636) 评论(0) 推荐(0) 编辑
摘要: //prer:分频数:0~7(只有低 3 位有效!) rlr:自动重装载值,0~0XFFF.//分频因子=4*2^prer.但最大值只能是 256!//rlr:重装载寄存器值:低 11 位有效//时间计算(大概):Tout=((4*2^prer)*rlr)/32 (ms).void IWDG_Ini 阅读全文
posted @ 2018-03-31 21:12 KING9 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: 用keil编译提示 warning: ......: last line of file ends without a newline 阅读全文
posted @ 2018-03-31 20:19 KING9 阅读(477) 评论(0) 推荐(0) 编辑
摘要: “expected an expression”预定义一个表达式,解决办法在你所宏定义的语句后去掉分后“;” 阅读全文
posted @ 2018-03-31 19:49 KING9 阅读(2859) 评论(0) 推荐(0) 编辑