⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 osapi 2.0 操作系统抽象层 "系统抽象层"使得你可以实现一种对于RTOS、CPU和所运行产品物理特性完全透明的软件。使用这种公共通用接口
💻 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 + -