simio: bug fixes - documentation and CCI flag storage.

This commit is contained in:
Daniel Beer 2011-03-10 16:56:36 +13:00
parent 8a1c8e8209
commit 0df20f690a
1 changed files with 2 additions and 2 deletions

View File

@ -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 <address>\n"