st7lib_config.h
来自「基于st7的模数转换」· C头文件 代码 · 共 47 行
H
47 行
/******************************************************************************
ST7LITE39配置文件
******************************************************************************/
#ifndef ST7LIB_CONFIG_H
#define ST7LIB_CONFIG_H
#include "adc.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 + =
减小字号Ctrl + -
显示快捷键?