?? 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 + -