This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

菜鸟求助!关于移植IAR头文件

您好,我在使用CCSV6开发msp430的时候,移植IAR的头文件时出现了这样的问题,请问应该怎么解决?谢谢!

  • 你移植的是iar开发环境带的还是自己编写的头文件?

    一般开发环境带的头文件是不移植的,只要把自己写的相关代码改为使用ccs的头文件就可以了

  • 感谢回答!我刚接触单片机,在CCS上粘贴别人写的例程。头文件内容如下,应该是自己编写的吧?请您再帮忙看一下。万分感谢!
    #ifndef _SST25V_H
    #define _SST25V_H
    #include "msp430x54x.h"
    #define   USER_DATA         0x199000                      // 用户数据区

    void Init_SSTSPI(void)                                   ;
    void Read_JEDECID(char *ID)                              ;
    void ReadFlash(long addr,int length,char *Buffer)        ;
    void Sector_Erase(unsigned long Dst)                     ;
    void Byte_Program(unsigned long Dst, unsigned char byte) ;
    unsigned char Read_Status_Register(void)                 ;
    void WRSR(unsigned char byte)                            ;
    void WREN(void)                                          ;
    void WRDI(void)                                          ;
    void Wait_Busy(void)                                     ;
    void EWSR(void)                                          ;

    #endif

  • 你好,

    作为新人,建议你还是直接在别人开发软件的工程的基础上熟悉,然后再移植到另一个开发环境:)