📄 st7lib_config.h
字号:
/******************************************************************************
ST7LITE39配置文件
******************************************************************************/
#ifndef ST7LIB_CONFIG_H
#define ST7LIB_CONFIG_H
//#define EEPROM_LITE3
#include "eeprom.h"
#include"st7flite3_reg.h"
#endif
/*---------------------------------Define Fcpu-------------------------------*/
#define Fcpu ((unsigned long) 8000000)
#define Fosc2 ((unsigned long) 8000000)
/******************************** End of User Part ***************************/
#ifdef __CSMC__
#define _COSMIC_
#else
#error "Unsupported Compiler!" /* Compiler defines not found */
#endif /* __CSMC__ */
/*----------------------------Enumerated data type---------------------------*/
#ifndef enum_type
#define enum_type
#undef TRUE
#undef FALSE
typedef enum {
FALSE =(unsigned char) 0x00,
TRUE = !(FALSE)
}BOOL;
#endif /* enum_type */
/*---------------------Macros for Assembly instructions----------------------*/
#ifdef _COSMIC_
#define EnableInterrupts {_asm ("RIM");}
#define DisableInterrupts {_asm ("SIM");}
#define Nop {_asm ("nop");}
#define WaitforInterrupt {_asm ("wfi");}
#endif /* _COSMIC_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -