osc.h
来自「80c51F020的开发程序 包括ADC DDS DAC」· C头文件 代码 · 共 57 行
H
57 行
/* ------------------------------------------------------------
File Name: osc.h
Auther: Samuel
Revision: R1
History: R1 Jul.05, 2007 Creation
------------------------------------------------------------ */
/* define to prevent recursive inclusion */
#ifndef __OSC_H
#define __OSC_H
/* includes --------------------------------------------------------------- */
#include <c8051f020.h>
/* types ------------------------------------------------------------------ */
typedef enum
{
INTERNAL_OSC,
EXTERNAL_OSC
}
Osc_Source_Select_t;
typedef enum
{
DISABLE,
COMS_CLK,
COMS_CLK_DIV2,
RC_OR_C_DIV2,
CRYSTAL,
CRYSTAL_DIV2
}
Osc_External_Mode_t;
typedef struct
{
Osc_Source_Select_t Source_Select;
Osc_External_Mode_t External_Mode;
unsigned long Frequency;
}
Osc_Init_Parameter_t;
/* functions -------------------------------------------------------------- */
void Osc_Init(Osc_Init_Parameter_t);
/* ---------- top level core functions ---------- */
/* ---------- support functions ---------- */
#endif /* __OSC_H */
/* End of osc.h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?