📄 misc.h
字号:
#ifndef _IDONGV2_MISC_H_
#define _IDONGV2_MISC_H_
//#include "../../include/xeyez_typedef.h"
#include "c8051f320.h"
#include <intrins.h>
/***************************************************************************
Declaration : void init_mcu(void)
Description : Initializes the MCU
***************************************************************************/
#define IO_DONE (1<<2)
#define IO_INIT_B (1<<0)
#define FPGA_IRQ_EN (1<<5)
#define INT0_POLAR (1<<3) //极性置高
#define INT0_MAP (5<<0) //FPGA 映射至P0.5
#define CMOS1_SCK (1<<4)
#define CMOS1_SDA (1<<5)
#define CMOS2_SCK (1<<7)
#define CMOS2_SDA (1<<6)
// USB clock selections (SFR CLKSEL)
#define USB_4X_CLOCK 0
// System clock selections (SFR CLKSEL)
#define SYS_4X_DIV_2 0x02
#define NOP_3() //_nop_(); _nop_(); _nop_();
void init_mcu(void);
void SYSCLK_Init (void);
void delay(u16 dat);//Maxim 65535
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -