simio: fix broken Timer_A input divider.
This commit is contained in:
parent
0df20f690a
commit
f4b1b629cb
|
@ -286,7 +286,7 @@ static int timer_write(struct simio_device *dev,
|
||||||
struct timer *tr = (struct timer *)dev;
|
struct timer *tr = (struct timer *)dev;
|
||||||
|
|
||||||
if (addr == tr->base_addr) {
|
if (addr == tr->base_addr) {
|
||||||
tr->tactl = data & ~(TACLR | 0x40);
|
tr->tactl = data & ~(TACLR | 0x08);
|
||||||
if (data & TACLR)
|
if (data & TACLR)
|
||||||
tr->tar = 0;
|
tr->tar = 0;
|
||||||
|
|
||||||
|
@ -430,7 +430,7 @@ static void timer_step(struct simio_device *dev,
|
||||||
tr->clock_input &= ((1 << i) - 1);
|
tr->clock_input &= ((1 << i) - 1);
|
||||||
|
|
||||||
/* Run the timer for however many pulses */
|
/* Run the timer for however many pulses */
|
||||||
for (i = 0; i < tr->clock_input; i++) {
|
for (i = 0; i < pulse_count; i++) {
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
for (j = 0; j < tr->size; j++)
|
for (j = 0; j < tr->size; j++)
|
||||||
|
|
Loading…
Reference in New Issue