Revision: 1211 Author: jsuijs Date: Mon Aug 17 00:17:21 2009 Log: use alias in documentation too. http://code.google.com/p/jallib/source/detail?r=1211
Modified: /trunk/include/peripheral/i2c/i2c_hardware.jal /trunk/include/peripheral/i2c/i2c_software.jal /trunk/include/peripheral/usart/serial_hardware.jal /trunk/include/peripheral/usart/serial_hw_int_cts.jal ======================================= --- /trunk/include/peripheral/i2c/i2c_hardware.jal Sun Aug 16 14:48:26 2009 +++ /trunk/include/peripheral/i2c/i2c_hardware.jal Mon Aug 17 00:17:21 2009 @@ -9,10 +9,10 @@ -- Description: Hardware implementation of I2C (single) master. -- -- -- -- Define i2c pins like: --- var volatile bit i2c_scl is pin_c3 ; optional, but good habit ;) --- var volatile bit i2c_scl_direction is pin_c3_direction --- var volatile bit i2c_sda is pin_c4 ; optional, but good habit ;) --- var volatile bit i2c_sda_direction is pin_c4_direction +-- alias i2c_scl is pin_c3 ; optional, but good habit ;) +-- alias i2c_scl_direction is pin_c3_direction +-- alias i2c_sda is pin_c4 ; optional, but good habit ;) +-- alias i2c_sda_direction is pin_c4_direction -- -- -- const word _i2c_bus_speed = 1 ; * 100kHz -- const bit _i2c_level = true ; i2c levels (not SMB) ======================================= --- /trunk/include/peripheral/i2c/i2c_software.jal Sun Aug 16 14:48:26 2009 +++ /trunk/include/peripheral/i2c/i2c_software.jal Mon Aug 17 00:17:21 2009 @@ -9,10 +9,10 @@ -- Description: Software implementation of I2C (single) master. -- -- -- -- Define i2c pins like: --- var volatile bit i2c_scl is pin_c3 --- var volatile bit i2c_scl_direction is pin_c3_direction --- var volatile bit i2c_sda is pin_c4 --- var volatile bit i2c_sda_direction is pin_c4_direction +-- alias i2c_scl is pin_c3 +-- alias i2c_scl_direction is pin_c3_direction +-- alias i2c_sda is pin_c4 +-- alias i2c_sda_direction is pin_c4_direction -- -- -- const word _i2c_bus_speed = 1 ; * 100kHz -- TODO: ======================================= --- /trunk/include/peripheral/usart/serial_hardware.jal Mon Mar 2 10:33:21 2009 +++ /trunk/include/peripheral/usart/serial_hardware.jal Mon Aug 17 00:17:21 2009 @@ -158,9 +158,9 @@ -- raw interface -- ----------------------------------------------------------------------- --- some variables made available under a general (pic-independant) name -var volatile bit serial_hw_data_available is PIR1_RCIF -var volatile bit serial_hw_data_ready is PIR1_TXIF +-- some variables made available under a general (pic-independent) name +alias serial_hw_data_available is PIR1_RCIF +alias serial_hw_data_ready is PIR1_TXIF -- These are real raw procedures, declared as pseudo variables -- the user is totally responsible for testing the transmit/receive ======================================= --- /trunk/include/peripheral/usart/serial_hw_int_cts.jal Sat Apr 4 02:40:31 2009 +++ /trunk/include/peripheral/usart/serial_hw_int_cts.jal Mon Aug 17 00:17:21 2009 @@ -44,7 +44,7 @@ -- -- and variables: -- --- var bit serial_ctsinv is pin_B4 -- incoming data flow control +-- alias serial_ctsinv is pin_B4 -- incoming data flow control -- var bit serial_overflow_discard -- With transmit buffer overflow: -- -- TRUE: discard data (non-blocking) -- -- FALSE: wait for free space (blocking) @@ -109,7 +109,7 @@ -- - When CTS flow control is not desired then assign serial_ctsinv -- to a dummy bit, for example: -- var bit dummy_cts_bit --- var bit serial_ctsinv is dummy_cts_bit +-- alias serial_ctsinv is dummy_cts_bit -- - The serial_overflow_discard flag may be dynamically changed -- (depending on how important the data is for the receiving party). -- - Do not touch the following interrupt bits: TXIE, RCIE, PEIE and GIE --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
