📄 init.h
字号:
//*********************************//
//***************模块初始化操作*****//
//********************************//
#ifndef _INIT_H
#define _INII_H
#include "msp430x44x.h"
#include "DataDef.h"
#include "8563.h"
#include "CommPublic.h"
#define WP_OUT P2DIR |= BIT0
#define WP_Enable P2OUT |= BIT0 //1024写保护
#define WP_Disable P2OUT &= ~BIT0
#define CS485OUT P2DIR |= BIT6
#define CS485ReceiveEnable P2OUT |= BIT6 //485接收使能
#define CS485TransmitEnable P2OUT &= ~BIT6 //485发送使能
//for 高频 8MH
#define UBR10_300 0x68
#define UBR10_600 0x34
#define UBR10_1200 0x1A
#define UBR10_2400 0x0D
#define UBR10_4800 0x06
#define UBR10_9600 0x03
#define UBR00_300 0x2A
#define UBR00_600 0x15
#define UBR00_1200 0x0A
#define UBR00_2400 0x05
#define UBR00_4800 0x82
#define UBR00_9600 0x41
#define UMCTL0_300 0x6D
#define UMCTL0_600 0x24
#define UMCTL0_1200 0x6D
#define UMCTL0_2400 0x24
#define UMCTL0_4800 0x6D
#define UMCTL0_9600 0x24
void SetCOM0BT( int bt);
void SetCOM1BT( int bt);
void Init();
void clr_watchdog();
void SetP1Trig();
void ReadStaticData();
void ResumeStaticData();
void ReadParam(UINT ParamPageAdd);
void CopyParam(UINT ParamPageAdd);
int CheckData(int Flag);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -