Revision: 1193
Author: sebastien.lelong
Date: Thu Aug 13 03:19:57 2009
Log: added i2c_hardware_aliases + conditional include
http://code.google.com/p/jallib/source/detail?r=1193
Modified:
/trunk/TORELEASE
/trunk/include/peripheral/i2c/i2c_hardware.jal
/trunk/include/peripheral/i2c/i2c_hardware_aliases.jal
/trunk/include/peripheral/i2c/i2c_hw_slave.jal
/trunk/include/peripheral/i2c/i2c_hw_slave_isr.jal
=======================================
--- /trunk/TORELEASE Wed Aug 12 09:12:10 2009
+++ /trunk/TORELEASE Thu Aug 13 03:19:57 2009
@@ -180,6 +180,7 @@
include/peripheral/adc/adc_hardware.jal
include/peripheral/data_eeprom/pic_data_eeprom.jal
include/peripheral/i2c/i2c_hardware.jal
+include/peripheral/i2c/i2c_hardware_aliases.jal
include/peripheral/i2c/i2c_hw_slave.jal
include/peripheral/i2c/i2c_hw_slave_isr.jal
include/peripheral/i2c/i2c_hw_slave_msg.jal
=======================================
--- /trunk/include/peripheral/i2c/i2c_hardware.jal Mon Jul 27 14:40:40 2009
+++ /trunk/include/peripheral/i2c/i2c_hardware.jal Thu Aug 13 03:19:57 2009
@@ -20,7 +20,9 @@
-- --------------------------------------------------------------------
-- include hardware specific aliases for PIC18f family
-include i2c_hardware_aliases
+if target_cpu == PIC_16 then
+ include i2c_hardware_aliases
+end if
-- --------------------------------------------------------------------
-- if the device has changed, change the speed if necessary
=======================================
--- /trunk/include/peripheral/i2c/i2c_hardware_aliases.jal Tue Jul 28
16:31:21 2009
+++ /trunk/include/peripheral/i2c/i2c_hardware_aliases.jal Thu Aug 13
03:19:57 2009
@@ -16,6 +16,7 @@
const I2C_HARDWARE_ALIASES_INCLUDED = 1
if ( ( target_cpu != PIC_16 )
+
-- exclude PIC18C452 Family
-- ( target_chip == PIC_18C242 ) |
-- ( target_chip == PIC_18C252 ) |
=======================================
--- /trunk/include/peripheral/i2c/i2c_hw_slave.jal Tue Aug 4 16:25:00 2009
+++ /trunk/include/peripheral/i2c/i2c_hw_slave.jal Thu Aug 13 03:19:57 2009
@@ -11,7 +11,9 @@
--
-- include hardware specific aliases for PIC18f family
-include i2c_hardware_aliases
+if target_cpu == PIC_16 then
+ include i2c_hardware_aliases
+end if
var byte tmpstat ; this contains the last sspstat value, on which the
user functions are
; called. i2c_hw_slave_on_error() could use this to know
what happend
=======================================
--- /trunk/include/peripheral/i2c/i2c_hw_slave_isr.jal Tue Aug 4 16:25:00
2009
+++ /trunk/include/peripheral/i2c/i2c_hw_slave_isr.jal Thu Aug 13 03:19:57
2009
@@ -49,7 +49,7 @@
-- enable line below to enable testing of the clock stretching feature
-- it will add an additional delay of 200us in the interrupt handler
--- so were sure that clock stretching is required for 100 KHz I3C operation
+-- so were sure that clock stretching is required for 100 KHz I2C operation
-- const bit I2C_HW_SLAVE_TEST_CLOCK_STRETCHING == 1
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---