From 0df20f690a3c56216a9431d6e80acbd520fe9b5a Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Thu, 10 Mar 2011 16:56:36 +1300 Subject: [PATCH] simio: bug fixes - documentation and CCI flag storage. --- simio_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simio_timer.c b/simio_timer.c index 0d5bcf0..84e96d5 100644 --- a/simio_timer.c +++ b/simio_timer.c @@ -200,7 +200,7 @@ static int config_channel(struct timer *tr, char **arg_text) oldval = tr->ctls[which] & CCI; tr->ctls[which] &= ~CCI; if (value) - tr->ctls[which] &= ~CCI; + tr->ctls[which] |= CCI; if (oldval && !value) edge_flags |= CM1; @@ -453,7 +453,7 @@ const struct simio_class simio_timer = { "This peripheral implements the Timer_A module.\n" "\n" "Constructor arguments: [size]\n" -" Specify the number of capture/compare registers (excluding CCR0).\n" +" Specify the number of capture/compare registers.\n" "\n" "Config arguments are:\n" " base
\n"