From 9fff97cc8475dec094230368952486bc4efc0f66 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Fri, 28 Jul 2006 14:40:24 +0000 Subject: don't go into reserved values git-svn-id: https://svn.openpcd.org:2342/trunk@53 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/main_analog.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- cgit v1.2.3