simio: fix broken Timer_A input divider.

This commit is contained in:
Daniel Beer 2011-03-11 10:13:59 +13:00
parent 0df20f690a
commit f4b1b629cb
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ static int timer_write(struct simio_device *dev,
struct timer *tr = (struct timer *)dev;
if (addr == tr->base_addr) {
tr->tactl = data & ~(TACLR | 0x40);
tr->tactl = data & ~(TACLR | 0x08);
if (data & TACLR)
tr->tar = 0;
@ -430,7 +430,7 @@ static void timer_step(struct simio_device *dev,
tr->clock_input &= ((1 << i) - 1);
/* Run the timer for however many pulses */
for (i = 0; i < tr->clock_input; i++) {
for (i = 0; i < pulse_count; i++) {
int j;
for (j = 0; j < tr->size; j++)