📄 cpld.h
字号:
#ifndef _cpld_
#define cpld
#else
#define cpld extern
#endif
#define SETRCK P4DIR|=BIT0;P4OUT|=BIT0;
#define CLRRCK P4DIR|=BIT0;P4OUT&=~BIT0;
#define SETSCK P4DIR|=BIT1;P4OUT|=BIT1;
#define CLRSCK P4DIR|=BIT1;P4OUT&=~BIT1;
#define SETSER P4DIR|=BIT6;P4OUT|=BIT6;
#define CLRSER P4DIR|=BIT6;P4OUT&=~BIT6;
#define input_load0 P4DIR=P4DIR|(1<<3); P4OUT=P4OUT&(~(1<<3));
#define input_load1 P4DIR=P4DIR|(1<<3); P4OUT=P4OUT|(1<<3);
#define input_clk0 P4DIR=P4DIR|(1<<4); P4OUT=P4OUT&(~(1<<4));
#define input_clk1 P4DIR=P4DIR|(1<<4); P4OUT=P4OUT|(1<<4);
#define alm0 P4DIR=P4DIR|(1<<5); P4OUT=P4OUT&(~(1<<5));
#define alm1 P4DIR=P4DIR|(1<<5); P4OUT=P4OUT|(1<<5);
cpld unsigned char KeyScan(void);
cpld unsigned long input(void);
cpld void ctrl(unsigned int data_595);
#undef cpld
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -