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

📄 scope.c

📁 实时linux RTAI 下的如何使用RTFIFO代码
💻 C
字号:
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/mman.h>#include <sys/stat.h>#include <fcntl.h>#include <signal.h>#include <rtai_shm.h>#include "parameters.h"static int end;static void endme(int dummy) { end=1; }int main (void){	struct data_str *data;	signal(SIGINT, endme);	data = rtai_malloc (nam2num(SHMNAM),1);	while (!end) {		printf(" Counter : %d Sine : %f Cosine : %f \n", data->indx_counter, data->sin_value,     data->cos_value);	}	rtai_free (nam2num(SHMNAM), &data);	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -