Revision: 1208
Author: jsuijs
Date: Sun Aug 16 14:48:26 2009
Log: extended documenatation.
http://code.google.com/p/jallib/source/detail?r=1208

Modified:
  /trunk/include/peripheral/i2c/i2c_hardware.jal
  /trunk/include/peripheral/i2c/i2c_software.jal

=======================================
--- /trunk/include/peripheral/i2c/i2c_hardware.jal      Thu Aug 13 03:19:57 2009
+++ /trunk/include/peripheral/i2c/i2c_hardware.jal      Sun Aug 16 14:48:26 2009
@@ -7,6 +7,15 @@
  -- Released under the ZLIB license  
(http://www.opensource.org/licenses/zlib-license.html)
  --
  -- 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
+-- --
+-- const word _i2c_bus_speed = 1 ; * 100kHz
+-- const bit _i2c_level = true   ; i2c levels (not SMB)
  --
  -- TODO:
  --
=======================================
--- /trunk/include/peripheral/i2c/i2c_software.jal      Thu Jan  1 12:32:23 2009
+++ /trunk/include/peripheral/i2c/i2c_software.jal      Sun Aug 16 14:48:26 2009
@@ -7,7 +7,14 @@
  -- Released under the ZLIB license  
(http://www.opensource.org/licenses/zlib-license.html)
  --
  -- 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
+-- --
+-- const word _i2c_bus_speed = 1 ; * 100kHz
  -- TODO:
  --


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