Jim Cromie wrote:
 > // ONE's sub-state determines which output sig to change
 > int short_sig;  // chooses shorter signal, ie which times out 1st  (0,1)
 > int long_sig;   // chooses longer signal, ie which times out 1st  (0,1)
 > 
 > #define ONESHOT_LATENCY_BY2   0        // see ONE state in timer_sig_hndlr()
 > #define TASK_PERIOD_NS    16000000    // 16 mSec
 > 
 > int pwm_period_ns = TASK_PERIOD_NS;
 > module_param(pwm_period_ns,int,0444);
 > MODULE_PARM_DESC(pwm_period_ns, "PWM period in ns (default: 16*10e6)");

One first problem I see, is that 
TASK_PERIOD_NS == 16E6, not 16*10E6

 > RTIME pwm_timer[3] = { 1.5*10e6, 1*10e6, 14.5*10e6 };

May have the same problem here.

-- 


                                            Gilles Chanteperdrix.

Reply via email to