📄 main.c
字号:
/*
Main.c (v1.00) RS-232 (Elapsed Time) example - sEOS.
*/
#include "Main.H"
#include "Port.H"
#include "Simple_EOS.H"
#include "PC_O_T1.h"
#include "Elap_232.h"
/* --------------------------------------------------------------- */
void main(void)
{
PC_LINK_O_Init_T1(9600); // Set baud rate to 9600
Elapsed_Time_RS232_Init(); // Prepare for elapsed time measurement
sEOS_Init_Timer2(5); // Set up simple EOS (5ms tick)
while(1) // Super Loop
{
sEOS_Go_To_Sleep(); // Enter idle mode to save power
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -