Author: sebastien.lelong
Date: Mon Apr  6 07:03:11 2009
New Revision: 919

Modified:
    trunk/CHANGELOG
    trunk/include/peripheral/pwm/pwm_ccp2.jal
    trunk/include/peripheral/pwm/pwm_ccp3.jal
    trunk/include/peripheral/pwm/pwm_ccp4.jal
    trunk/include/peripheral/pwm/pwm_ccp5.jal
    trunk/tools/pwm_ccpx.tmpl
    trunk/tools/pwm_generate_all.sh

Log:
pwm: shadow registers initialized to 0 to make libs compatible with  
Enhanced-PWM modules

Modified: trunk/CHANGELOG
==============================================================================
--- trunk/CHANGELOG     (original)
+++ trunk/CHANGELOG     Mon Apr  6 07:03:11 2009
@@ -16,6 +16,8 @@

  peripherals:
   - serial_hw_int_cts: add deprecation warnings
+ - pwm libraries: shadow registers initialized to 0
+   (so libs are compatible with Enhanced-PWM)

  jal extension:
   - jascii: added 'tolower' procedure

Modified: trunk/include/peripheral/pwm/pwm_ccp2.jal
==============================================================================
--- trunk/include/peripheral/pwm/pwm_ccp2.jal   (original)
+++ trunk/include/peripheral/pwm/pwm_ccp2.jal   Mon Apr  6 07:03:11 2009
@@ -13,8 +13,8 @@
  -- Stef's lib
  --

-var byte ccpr2l_shadow
-var byte ccp2con_shadow
+var byte ccpr2l_shadow  = 0
+var byte ccp2con_shadow = 0

  -- Sets dutycyle in low resolution mode.
  -- The 2 LSbits take their value from ccp2con_shadow, by default 0

Modified: trunk/include/peripheral/pwm/pwm_ccp3.jal
==============================================================================
--- trunk/include/peripheral/pwm/pwm_ccp3.jal   (original)
+++ trunk/include/peripheral/pwm/pwm_ccp3.jal   Mon Apr  6 07:03:11 2009
@@ -13,8 +13,8 @@
  -- Stef's lib
  --

-var byte ccpr3l_shadow
-var byte ccp3con_shadow
+var byte ccpr3l_shadow  = 0
+var byte ccp3con_shadow = 0

  -- Sets dutycyle in low resolution mode.
  -- The 2 LSbits take their value from ccp3con_shadow, by default 0

Modified: trunk/include/peripheral/pwm/pwm_ccp4.jal
==============================================================================
--- trunk/include/peripheral/pwm/pwm_ccp4.jal   (original)
+++ trunk/include/peripheral/pwm/pwm_ccp4.jal   Mon Apr  6 07:03:11 2009
@@ -13,8 +13,8 @@
  -- Stef's lib
  --

-var byte ccpr4l_shadow
-var byte ccp4con_shadow
+var byte ccpr4l_shadow  = 0
+var byte ccp4con_shadow = 0

  -- Sets dutycyle in low resolution mode.
  -- The 2 LSbits take their value from ccp4con_shadow, by default 0

Modified: trunk/include/peripheral/pwm/pwm_ccp5.jal
==============================================================================
--- trunk/include/peripheral/pwm/pwm_ccp5.jal   (original)
+++ trunk/include/peripheral/pwm/pwm_ccp5.jal   Mon Apr  6 07:03:11 2009
@@ -13,8 +13,8 @@
  -- Stef's lib
  --

-var byte ccpr5l_shadow
-var byte ccp5con_shadow
+var byte ccpr5l_shadow  = 0
+var byte ccp5con_shadow = 0

  -- Sets dutycyle in low resolution mode.
  -- The 2 LSbits take their value from ccp5con_shadow, by default 0

Modified: trunk/tools/pwm_ccpx.tmpl
==============================================================================
--- trunk/tools/pwm_ccpx.tmpl   (original)
+++ trunk/tools/pwm_ccpx.tmpl   Mon Apr  6 07:03:11 2009
@@ -5,7 +5,7 @@
  -- Compiler: >=2.4g
  --
  -- This file is part of jallib (http://jallib.googlecode.com)
--- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
+-- Released under the ZLIB license  
(http://www.opensource.org/licenses/zlib-license.html)
  --
  -- Description: performs PWM operations on $ccp_name
  -- The target must support this.
@@ -17,8 +17,8 @@


  #def global_vars
-var byte ${ccprxl}_shadow
-var byte ${ccpxcon}_shadow
+var byte ${ccprxl}_shadow  = 0
+var byte ${ccpxcon}_shadow = 0
  #end def



Modified: trunk/tools/pwm_generate_all.sh
==============================================================================
--- trunk/tools/pwm_generate_all.sh     (original)
+++ trunk/tools/pwm_generate_all.sh     Mon Apr  6 07:03:11 2009
@@ -2,7 +2,7 @@

  for num in `echo 1 2 3 4 5`
  do
-       python pwm_ccpx_generator.py pwm_ccpx.tmpl $num  
> ../unvalidated/include/peripheral/pwm/pwm_ccp$num.jal
+       python pwm_ccpx_generator.py pwm_ccpx.tmpl $num  
> ../include/peripheral/pwm/pwm_ccp$num.jal
  done



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