diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-28 14:40:24 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-28 14:40:24 +0000 |
commit | 9fff97cc8475dec094230368952486bc4efc0f66 (patch) | |
tree | 4059830174888bfdbdfea52b1265948dbc1490b2 | |
parent | 97b20184858e406922ddca898e14e8e600b19747 (diff) |
don't go into reserved values
git-svn-id: https://svn.openpcd.org:2342/trunk@53 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r-- | openpcd/firmware/src/main_analog.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openpcd/firmware/src/main_analog.c b/openpcd/firmware/src/main_analog.c index 676e9fc..c60b64e 100644 --- a/openpcd/firmware/src/main_analog.c +++ b/openpcd/firmware/src/main_analog.c @@ -45,8 +45,17 @@ int _main_dbgu(char key) ana_out_sel++; ret = 1; break; + case 'c': + rc632_turn_on_rf(RAH); + break; + case 'o': + rc632_turn_off_rf(RAH); + break; } + if (ana_out_sel >= 0xd) + ana_out_sel = 0; + if (ret == 1) { ana_out_sel &= 0x0f; DEBUGPCR("switching to analog output mode 0x%x\n", ana_out_sel); |