Hi Joep,

I've seen you added this in i2c_hw_slave:


   -- if this procedure exists, enable start/stop interrupts.
   if(defined(i2c_enable_start_stop_interrupts) == true) then
        SSPCON1 = SSPCON1 | 0b_0000_1000    -- enable start/stop interrupts
   end if


This is not necessary, since init procedure already takes a param to switch
start/stop interrupts. I understand when setting this in library, users
won't have to care about passing "true" to the init procedure, but this is
somewhat confusing because there's two of achieving the same thing. We
should keep only one.

I agree to keep your if you prefer it. I'd need to update the blog... How
can we deal with that ? In my posts, I point to SVN repository, but since it
evolves, posts become outdated and things may not work anymore. I can't
attach files, because this crap can't handle them. I may upload files in
group's file section, specially for blog, as I already did for my LCD
sample. I'd then just need to update the posts to say "hey, something has
evolved" but without modifying the whole content. Do you guys have any other
idea ?


I've seen you enriched the ISR to conditionally add _on_start and _on_stop
interrupts, this is great and powerful :)

Seb



2009/1/28 Joep Suijs <[email protected]>

> Hi all,
>
> The i2c slave with message interface seems to work okay now and to achieve
> this, i2c_hw_slave_isr is extended to (optionally) support start and stop
> interrupts.See test_i2c_hw_slave_msg to see how simple i2c can be. Please
> have a look and give it a try if you can.
>
> Joep
>
> >
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

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