Make it possible to run fmu and px4io simultaneously with full control over both sets of possible PWM outputs. First started wins.

This commit is contained in:
px4dev
2012-10-20 16:53:52 -07:00
parent d2ef2afb0b
commit bfbd17a2fa
5 changed files with 123 additions and 59 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ static int cdev_poll(struct file *filp, struct pollfd *fds, bool setup);
* Note that we use the GNU extension syntax here because we don't get designated
* initialisers in gcc 4.6.
*/
static const struct file_operations cdev_fops = {
const struct file_operations CDev::fops = {
open : cdev_open,
close : cdev_close,
read : cdev_read,
@@ -118,7 +118,7 @@ CDev::init()
goto out;
// now register the driver
ret = register_driver(_devname, &cdev_fops, 0666, (void *)this);
ret = register_driver(_devname, &fops, 0666, (void *)this);
if (ret != OK)
goto out;