智能车制作

标题: /文件名: includes.h ???疑问 [打印本页]

作者: martain    时间: 2012-5-7 19:20
标题: /文件名: includes.h ???疑问

        //1 头文件
        //1.1通用头文件
        #include "common.h"            //通用函数头文件
               
        //1.2包含面向硬件对象头文件(即构件模块)
#include "hw_gpio.h"
#include "light.h"                  //小灯构件头文件
#include "hw_uart.h"
#include "hw_lptmr.h"
#include "hw_pit.h"

增加pit构件,在includes.h里加入#include "hw_pit.h"
为什么出现错误the   file  "hw_pit.h"cannot  be  opened????、

作者: 野火    时间: 2012-5-7 19:44
用IAR 吗?需要把 hw_pit.h 所在文件夹添加进工程选项
作者: martain    时间: 2012-5-7 19:50
野火 发表于 2012-5-7 19:44
用IAR 吗?需要把 hw_pit.h 所在文件夹添加进工程选项

用的是code warrior
作者: 野火    时间: 2012-5-7 19:54
martain 发表于 2012-5-7 19:50
用的是code warrior

code warrior 也是需要设置头文件所在的文件夹的。


作者: martain    时间: 2012-5-7 19:57
野火 发表于 2012-5-7 19:54
code warrior 也是需要设置头文件所在的文件夹的。

请说的具体一点,如何操作?谢谢




欢迎光临 智能车制作 (http://dns.znczz.com/) Powered by Discuz! X3.2