A correction:
Kulwinder Atwal wrote:
>
> while (pulse_count1 || pulse_count2){
>
> oldpulse1_state = pulse1_state;
> oldpulse2_state = pulse2_state;
>
> READ_BACK_CNT0;
> READ_CNT0(pulse1_state);
> pulse1_state ^= OUT_STATE;
> if ((pulse1_state != oldpulse1_state) && pulse_count1)
> pulse_count1--;
> READ_BACK_CNT1;
> READ_CNT1(pulse2_state);
> pulse2_state ^= OUT_STATE;
>
> if ((pulse2_state != oldpulse2_state) && pulse_count2)
> pulse_count2--;
> pulse2_state = pulse2_state << 1;
> motor_output = pulse2_state + pulse1_state;
> outb(motor_output,LPT_PORT);
[snip]
> }
>
> - Kal.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/