MDK5编译报错
Rebuildtarget'Target1'compilingmain.c...main.c(92):warning:#223-D:function"timer_init...
Rebuild target 'Target 1'
compiling main.c...
main.c(92): warning: #223-D: function "timer_init" declared implicitly
timer_init(99,3599);//中断设定计数值,预分频值 20ms
main.c(73): warning: #177-D: variable "fontcnt" was declared but never referenced
u32 fontcnt;
main.c(74): warning: #177-D: variable "i" was declared but never referenced
u8 i,j;
main.c(74): warning: #177-D: variable "j" was declared but never referenced
u8 i,j;
#ifndef __TIMER_H
#define __TIMER_H
#include "stm32f10x.h"
#include "stm32f10x_tim.h"
void timer_init(uint16_t arr,uint16_t psc);//t=£¨£¨arr+1£©*£¨psc+1£©/tclk£© tclk=72mhz
//arr=4999,psc=7200£¬ÖÜÆÚΪ500ms
//void TIM3_IRQHandler(void); //TIM3ÖжÏ
#endif
都已经申明了还是报错 搞了一晚上没有搞明白 展开
compiling main.c...
main.c(92): warning: #223-D: function "timer_init" declared implicitly
timer_init(99,3599);//中断设定计数值,预分频值 20ms
main.c(73): warning: #177-D: variable "fontcnt" was declared but never referenced
u32 fontcnt;
main.c(74): warning: #177-D: variable "i" was declared but never referenced
u8 i,j;
main.c(74): warning: #177-D: variable "j" was declared but never referenced
u8 i,j;
#ifndef __TIMER_H
#define __TIMER_H
#include "stm32f10x.h"
#include "stm32f10x_tim.h"
void timer_init(uint16_t arr,uint16_t psc);//t=£¨£¨arr+1£©*£¨psc+1£©/tclk£© tclk=72mhz
//arr=4999,psc=7200£¬ÖÜÆÚΪ500ms
//void TIM3_IRQHandler(void); //TIM3ÖжÏ
#endif
都已经申明了还是报错 搞了一晚上没有搞明白 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询