📄 jtzmv20.c
字号:
#include <intrins.h>
#include <jtzmv20.h>
#include <hardconfig.h>
#include <inandout.h>
#include <cpudef.h>
FourByteStr OutStates;
void HardMainConfig()
{
TimerConfig();
EnableInterrupt();
StartTime1();
}
void DataConfig()
{
// OutStates.Dw8U[0]=0x55;
// OutStates.Dw8U[1]=0x66;
OutStates.Dw32U=0x556677;
ButtonDataConfig();
}
void RlyOutConfigSub()
{
uchar outloop;
ulong outmid=1;
bit OnOffBit;
for(outloop=0;outloop<24;outloop++)
{
if((outmid&OutStates.Dw32U)!=0)
OnOffBit=1;
else
OnOffBit=0;
RelayOut(outloop+1,OnOffBit);
outmid<<=1;
}
}
void ButtonDeal()
{
uchar ButtonValue=0;
ButtonValue=GetButton();
if(ButtonValue!=0)
{
/**/
_nop_();
}
}
void main()
{
GPIO_OUT_Config();//
HardMainConfig();
DataConfig();
RlyOutConfigSub();
UartConfig();
while(1)
{
ButtonDeal();
SetAdjLight();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -