📄 main.c
字号:
/*** POSIX/Linux main function for flight software / OS Abstraction Layer*/#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include "common_types.h"#include "osapi.h"extern void OS_Application_Startup(void);/*** Main function/entry point*/int main ( void ){ /* ** Startup FSW */ printf("Starting FSW Exec..\n"); /* ** Call Application startup routine */ OS_Application_Startup(); /* ** Give the software some time to start up */ sleep(1); /* ** Now just sit here and act like a 1hz */ while(1) { sleep(1); /* Other things can be done in the main thread while the software is running */ } return(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -