Revision: 1849
Author: sebastien.lelong
Date: Mon Mar 29 00:16:18 2010
Log: fix number of ANS bits/cases, up to 27
http://code.google.com/p/jallib/source/detail?r=1849
Modified:
/trunk/include/peripheral/adc/adc_channels.jal
/trunk/tools/adc/adc_channels.jal.tmpl
=======================================
--- /trunk/include/peripheral/adc/adc_channels.jal Thu Mar 25 07:18:10 2010
+++ /trunk/include/peripheral/adc/adc_channels.jal Mon Mar 29 00:16:18 2010
@@ -2670,6 +2670,31 @@
JANSEL_ANS22 = false
end if
end if
+ if defined(JANSEL_ANS23) == true then
+ if an_pin_num == 23 then
+ JANSEL_ANS23 = false
+ end if
+ end if
+ if defined(JANSEL_ANS24) == true then
+ if an_pin_num == 24 then
+ JANSEL_ANS24 = false
+ end if
+ end if
+ if defined(JANSEL_ANS25) == true then
+ if an_pin_num == 25 then
+ JANSEL_ANS25 = false
+ end if
+ end if
+ if defined(JANSEL_ANS26) == true then
+ if an_pin_num == 26 then
+ JANSEL_ANS26 = false
+ end if
+ end if
+ if defined(JANSEL_ANS27) == true then
+ if an_pin_num == 27 then
+ JANSEL_ANS27 = false
+ end if
+ end if
end procedure
-- Because there are many different combinations when specifying the
number of
=======================================
--- /trunk/tools/adc/adc_channels.jal.tmpl Thu Mar 25 07:18:10 2010
+++ /trunk/tools/adc/adc_channels.jal.tmpl Mon Mar 29 00:16:18 2010
@@ -531,7 +531,7 @@
--
-- Note: the pin direction is not modified
procedure set_digital_pin(byte in an_pin_num) is
- #for i in range(23)
+ #for i in range(28)
if defined(JANSEL_ANS$i) == true then
if an_pin_num == $i then
JANSEL_ANS$i = false
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.