i2c/twi for Atmel AVR

I am new to i2c and was wondering if anybody had some i2c code that could be integrated with FreeRTOS.  Perhaps something that would read/write data to a FreeRTOS queue?  I know AVR libc has a file called <avr/twi.h> but I am not sure how to integrate that with FreeRTOS.

i2c/twi for Atmel AVR

Dont know about AVR, but the wiznet demo in the FreeRTOS download has an i2c driver included that could be used as a reference.