📄 main.c
字号:
#include <w77e58.h>
#include "global.h"
#include "io.h"
#include "util.h"
#include "timer.h"
#include "serial.h"
#include "gps.h"
#include "bluetooth.h"
extern uchar idata SysTask;
extern uchar idata SysTimer;
#define CPU_IDLE {PCON |= 1;}
/***********************************************************************
* Main function *
***********************************************************************/
void main(void)
{
//EA = 0;
PMR |= 0x01; //use 1K SRAM
CPU_init();
PMR |= 0x01; //use 1K SRAM
//putstring("\r\n");
//putstring("Initial GPS Module:\r\n");
//GPSModule_init();
//putstring("Initial GSM Module:\r\n");
//gsmModule_init();
//SysTask = 0;
//gsmSendMessage();
BlueToothInit();
while(1)
/* main_loop */
{
//gsmMain();
BlueToothMain();
}/* end while */
}/* end main */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -