msp430.h

来自「桦宣430研讨会资料盘里的430源码资料」· C头文件 代码 · 共 62 行

H
62
字号
/**
 * @mainpage MSP430 BSL
 *
 * @section intro Introduction
 *
*/



/**            
 * \file MSP430.h
 * 
 *
 */
#ifndef _MSP430_H_
#define _MSP430_H_

// #includes. -----------------------------------------------------------------
#include <windows.h>

// #defines. ------------------------------------------------------------------

typedef unsigned char BYTE;
typedef unsigned short WORD;


#define RET_ERR(x)   return(x)
#define RET_OK       return(NO_ERR)



/// this is the definition for the DLL functions return value
typedef LONG STATUS_T;

/**
 \brief  Status codes of the DLL functions.
*/
enum STATUS_CODE 
{
   /// DLL functions return this value on failure
    STATUS_ERROR = -1,
   /// this value is returned on success
    STATUS_OK,
};


/// File types.
enum FILE_TYPE
{
   /// Auto detect.
    FILETYPE_AUTO,      
   /// TI text.
    FILETYPE_TI_TXT,    
   /// Intel hex.
    FILETYPE_INTEL_HEX, 
};




#endif // _MSP430_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?