📄 main.c
字号:
#include <iom64v.h>
#include <macros.h>
#include "head.h"
#include "uart.h"
#include "time.h"
////
U8 g_ucKeyData;
U8 g_ucMomeyData;
U8 g_ucMotorData;
U8 g_ucLedStatus;
U8 temp;
void InitData()
{
g_ucKeyData=0x00;
g_ucMomeyData=0x00;
g_ucMotorData=0x00;
g_ucLedStatus=0xff;
temp=1;
}
void InitTarget()
{
Time1Init();
//Uart1Init(19200);
// moneydriver
DDRA=0XFF;
PORTA=0x00;
// motordriver
DDRC=0XFF;
PORTC=0X00;
// turn on the first LED
DDRF=0xFF;
PORTF=0x00;
}
void main()
{
InitTarget();//
InitData();
PORTF=g_ucLedStatus;
while(true){
//dothing;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -