Subversion Repositories freemyipod

Rev

Rev 15 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 85
Line 52... Line 52...
52
             (7 << 0);  /* CK_REG */
52
             (7 << 0);  /* CK_REG */
53
 
53
 
54
    /* serial output on */
54
    /* serial output on */
55
    IICSTAT = (1 << 4);
55
    IICSTAT = (1 << 4);
56
 
56
 
57
    INTMSK |= INTMSK_IIC;
57
    interrupt_enable(IRQ_IIC, true);
58
}
58
}
59
 
59
 
60
void i2c_send(uint32_t bus, uint32_t device, uint32_t address, const uint8_t* data, uint32_t length)
60
void i2c_send(uint32_t bus, uint32_t device, uint32_t address, const uint8_t* data, uint32_t length)
61
{
61
{
62
    mutex_lock(&i2cmutex, TIMEOUT_BLOCK);
62
    mutex_lock(&i2cmutex, TIMEOUT_BLOCK);