main.c

来自「osapi 2.0 操作系统抽象层 "系统抽象层"使得你可以实现一种对于RTO」· C语言 代码 · 共 49 行

C
49
字号
/*** 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 + =
减小字号Ctrl + -
显示快捷键?