common.h
来自「A tutorial on RT-Linux」· C头文件 代码 · 共 24 行
H
24 行
#ifndef COMMON_H#define COMMON_H/* Those who share the memory must agree to a unique key to identify it among the pool of shared memory used by everyone else. Pick an used number, using the Linux command "ipcs" (interprocess communication status) to see what's already in use. */enum {SHM_KEY = 101};/* How many data elements are to be allocated for our array of TSC structs. The actual space we will allocate will be SHM_HOWMANY * sizeof(TSC). */enum {SHM_HOWMANY = 1024};/* The nominal period for the jitter task, in nanoseconds */enum {PERIOD_NSEC = 50000}; /* 50 microseconds */#endif /* COMMON_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?