Revision: 1220
Author: sebastien.lelong
Date: Tue Aug 18 22:29:12 2009
Log: var...is to alias...is
http://code.google.com/p/jallib/source/detail?r=1220

Modified:
  /trunk/sample/16f877a_print_serial_numbers.jal
  /trunk/sample/16f88_data_eeprom.jal
  /trunk/sample/16f88_ir_ranger_gp2d02.jal
  /trunk/sample/16f88_print_serial_numbers.jal
  /trunk/sample/16f88_serial_sw_echo.jal
  /trunk/test/external/lcd/test_lcd_hd44780_serial.jal

=======================================
--- /trunk/sample/16f877a_print_serial_numbers.jal      Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f877a_print_serial_numbers.jal      Tue Aug 18 22:29:12 2009
@@ -34,15 +34,15 @@
  include format
  include print

-var bit LED is pin_b0
+alias led is pin_b0

  pin_b0_direction = output

  forever loop
     delay_100ms( 5 )
-   LED = high
+   led = high
     delay_100ms( 5 )
-   LED = low
+   led = low

     -- serial_hw_data is a pseudo-var of the desired output-device.
     serial_hw_data = "A" -- output an A to the serial port.
=======================================
--- /trunk/sample/16f88_data_eeprom.jal Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f88_data_eeprom.jal Tue Aug 18 22:29:12 2009
@@ -30,7 +30,7 @@

  include pic_data_eeprom

-var bit led      is pin_A0
+alias led      is pin_A0
  pin_A0_direction = output

  var byte i = 0                          -- counter
=======================================
--- /trunk/sample/16f88_ir_ranger_gp2d02.jal    Tue Jun  2 22:48:01 2009
+++ /trunk/sample/16f88_ir_ranger_gp2d02.jal    Tue Aug 18 22:29:12 2009
@@ -38,8 +38,9 @@
  enable_digital_io()

  ;@jallib section ccp
--- ccp setup
-var volatile bit pin_ccp1_direction is pin_b0_direction
+-- ccp setup: since CCP1 is multiplexed, we need to define
+-- alias pointing to the active CCP1 pin
+alias pin_ccp1_direction is pin_ccp1_rb0_direction
  -- Configure PWM
  pin_ccp1_direction = output
  include pwm_hardware
@@ -52,10 +53,10 @@
  serial_hw_init()

  ;@jallib section gp2d02
-var volatile bit gp2d02_vin is pin_a4
-var volatile bit gp2d02_vout is pin_a6
-var bit gp2d02_vin_direction is pin_a4_direction
-var bit gp2d02_vout_direction is pin_a6_direction
+alias gp2d02_vin is pin_a4
+alias gp2d02_vout is pin_a6
+alias gp2d02_vin_direction is pin_a4_direction
+alias gp2d02_vout_direction is pin_a6_direction
  include ir_ranger_gp2d02
  -- set pin direction (careful: "vin" is the GP2D02 pin's name,
  -- it's an input for GP2D02, but an output for PIC !)
=======================================
--- /trunk/sample/16f88_print_serial_numbers.jal        Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f88_print_serial_numbers.jal        Tue Aug 18 22:29:12 2009
@@ -36,15 +36,15 @@
  include format
  include print

-var bit LED is pin_b0
+alias led is pin_b0

  pin_b0_direction = output

  forever loop
     delay_100ms( 5 )
-   LED = high
+   led = high
     delay_100ms( 5 )
-   LED = low
+   led = low

     -- serial_hw_data is a pseudo-var of the desired output-device.
     serial_hw_data = "A" -- output an A to the serial port.
=======================================
--- /trunk/sample/16f88_serial_sw_echo.jal      Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f88_serial_sw_echo.jal      Tue Aug 18 22:29:12 2009
@@ -32,8 +32,8 @@
  -- because it's a software implementation, we also need to define
  -- tx and rx pins. How clever we are: we use the same pin as in hardware,
  -- so it works out of the box with any board having an USART module...
-var volatile bit serial_sw_tx_pin is pin_B5
-var volatile bit serial_sw_rx_pin is pin_B2
+alias serial_sw_tx_pin is pin_B5
+alias serial_sw_rx_pin is pin_B2
  -- and we also need to specify direction
  pin_B5_direction = output
  pin_B2_direction = input
=======================================
--- /trunk/test/external/lcd/test_lcd_hd44780_serial.jal        Tue Mar 31  
01:19:47 2009
+++ /trunk/test/external/lcd/test_lcd_hd44780_serial.jal        Tue Aug 18  
22:29:12 2009
@@ -37,7 +37,7 @@
  led_direction = output


-var volatile bit serial_sw_tx_pin is i2c_scl
+alias serial_sw_tx_pin is i2c_scl
  i2c_scl_direction = output

  include print                          -- formatted output library

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