📄 osc.h
字号:
/* ------------------------------------------------------------
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -