Revision: 1218
Author: sebastien.lelong
Date: Tue Aug 18 00:48:44 2009
Log: var...is to alias...is
http://code.google.com/p/jallib/source/detail?r=1218

Modified:
  /trunk/include/peripheral/adc/adc.jal
  /trunk/include/peripheral/adc/adc_clock.jal

=======================================
--- /trunk/include/peripheral/adc/adc.jal       Sun Jul 19 11:54:58 2009
+++ /trunk/include/peripheral/adc/adc.jal       Tue Aug 18 00:48:44 2009
@@ -54,7 +54,7 @@
  -- some PICs don't handle high resolution (8bits only) *and*
  -- don't have ADRESL register. Normalize !
  if defined(ADRESL) == false then
-   var volatile byte ADRESL is ADRES
+   alias ADRESL is ADRES
  end if

  -- local variables
@@ -163,11 +163,11 @@

     -- first normalize ADFM bit
     if defined(ADCON0_ADFM) == true then
-         var volatile bit JALLIB_ADFM is ADCON0_ADFM
+         alias JALLIB_ADFM is ADCON0_ADFM
     elsif defined(ADCON1_ADFM) == true then
-         var volatile bit JALLIB_ADFM is ADCON1_ADFM
+         alias JALLIB_ADFM is ADCON1_ADFM
     elsif defined(ADCON2_ADFM) == true then
-         var volatile bit JALLIB_ADFM is ADCON2_ADFM
+         alias JALLIB_ADFM is ADCON2_ADFM
     else
          var volatile bit JALLIB_ADFM = 0 ; fake
          if ADC_HIGH_RESOLUTION == true then
=======================================
--- /trunk/include/peripheral/adc/adc_clock.jal Mon Jun 29 02:47:07 2009
+++ /trunk/include/peripheral/adc/adc_clock.jal Tue Aug 18 00:48:44 2009
@@ -84,11 +84,11 @@

     -- Normalize ADCS bits
     if defined(ADCON0_ADCS) == true then
-         var volatile bit*2 jallib_adcs_lsb is ADCON0_ADCS
+         alias jallib_adcs_lsb is ADCON0_ADCS
          if defined(ADCON1_ADCS2) == true then
                 const byte ADC_ADCS_BIT_LONG = 3
                 const bit ADC_ADCS_BIT_SPLIT = true
-                var volatile bit jallib_adcs_msb is ADCON1_ADCS2
+                alias jallib_adcs_msb is ADCON1_ADCS2
          else
                 const byte ADC_ADCS_BIT_LONG = 2
                 const bit ADC_ADCS_BIT_SPLIT = false
@@ -96,17 +96,17 @@
          end if
     end if
     if defined(ADCON1_ADCS) == true then
-         var volatile bit*3 jallib_adcs is ADCON1_ADCS
+         alias jallib_adcs is ADCON1_ADCS
          const byte ADC_ADCS_BIT_LONG = 3
          const bit ADC_ADCS_BIT_SPLIT = false
     end if
     if defined(ADCON2_ADCS) == true then
-         var volatile bit*3 jallib_adcs is ADCON2_ADCS
+         alias jallib_adcs is ADCON2_ADCS
          const byte ADC_ADCS_BIT_LONG = 3
          const bit ADC_ADCS_BIT_SPLIT = false
     end if
     if defined(ANSEL_ADCS) == true then
-         var volatile bit*3 jallib_adcs_lsb is ANSEL_ADCS
+         alias jallib_adcs_lsb is ANSEL_ADCS
          const byte ADC_ADCS_BIT_LONG = 3
          const bit ADC_ADCS_BIT_SPLIT = false
     end if

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to