Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-11 Thread Alexis Berlemont
Hi, On Mon, Jan 11, 2010 at 5:08 PM, Alessio Margan @ IIT alessio.mar...@iit.it wrote: Hi, I try to configure sensoray counters to generate PWM signal #define SUBD_CNT 0 #define SUBD_AI 1 #define SUBD_AO 2 #define SUBD_DIO 3 insn.type = A4L_INSN_CONFIG; insn.idx_subd = SUBD_COUNTER;

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-07 Thread Alexis Berlemont
Hi, Alessio Margan @ IIT wrote: Hi, I've got a doubt about s526 driver on reading analog input. I read analog data in this way sampl_t data; a4l_insn_t insn_tab = { .type = A4L_INSN_READ, .idx_subd = idx_subd, .chan_desc = CHAN(idx_chan), .data_size = sizeof(data), .data = data};

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-04 Thread Alessio Margan @ IIT
Hi, The irq parameter is not used. It's not used in comedi either. For the io_port, the command analogy_config analogy0 analogy_s526 0xdc0 works for me... not for me ... driver arg 0xdc0 when red by sscanf(opts, %u, res[(*nb) - 1]) in analogy_config.c in function compute_opts is set to 0

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-04 Thread Alexis Berlemont
Alessio Margan @ IIT wrote: Hi, The irq parameter is not used. It's not used in comedi either. For the io_port, the command analogy_config analogy0 analogy_s526 0xdc0 works for me... not for me ... driver arg 0xdc0 when red by sscanf(opts, %u, res[(*nb) - 1]) in analogy_config.c in

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-02 Thread Simon Boulay
Hi, On 12/30/2009 03:53 PM, Alessio Margan @ IIT wrote: Hi, I start test the sensoray driver. Thank you! I've got problem with analogy_config : 1) it seems that board_name as defined have some problem, changed to a4l_s526 seems better #define BOARD_NAME Sensoray Model 526 ...

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2009-12-29 Thread Alessio Margan @ IIT
Simon Boulay wrote: Alessio was interested by this driver; Alessio, the drivers is yours as soon as it is available in my git repository. I'll be pleased to help anybody who can test the driver. Hi, good news ... I'll test the patch asap. Thank you very much for your help. Alessio

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2009-12-28 Thread Alexis Berlemont
Hi Simon, Simon Boulay wrote: Hi, Here is a patch which adds the support of the Sensoray Model 526 board to analogy. Great ! I had a look at the code, that is fine for me. I just have few remarks: - some printk were left commented in the original comedi driver, you correctly translated

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2009-12-28 Thread Simon Boulay
On Mon, Dec 28, 2009 at 9:40 PM, Alexis Berlemont alexis.berlem...@gmail.com wrote: Hi Simon, Simon Boulay wrote: Hi, Here is a patch which adds the support of the Sensoray Model 526 board to analogy. Great ! I had a look at the code, that is fine for me. I just have few remarks: -