control.h
来自「本人在Linux实时内核下写的PID算法的电机驱动程序」· C头文件 代码 · 共 33 行
H
33 行
struct PID_struct {float Kp;float Ti;float TD;float T;float speed;};#define PORTin 0x200#define PORTout 100int finish;float A,B,C;int msg;int check=1;//int motor_write(int &m);#ifndef _CONTROL_H__#define _CONTROL_H__#endif//#ifndef motor_MAJOR//#define motor_MAJOR 0 //#endif//#define count_t unsigned long//#define read_write_t long//extern int scull_major; //ssize_t motor_read (struct inode *inode, struct file *filp,// char *buf, count_t count);//ssize_t motor_write (struct inode *inode, struct file *filp,// const char *buf, count_t count);//int motor_open(struct inode *inode,struct file *filp);//void motor_release(struct inode *inode,struct file *filp);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?