Other Parts Discussed in Thread: HALCOGEN
Hi,
HALCoGen comes with a file i2c.h for TMS570 (folder HALCoGen\v04.05.02\drivers\TMS570LC4357ZWT\I2C570v000) which defines
enum i2cDMA {
I2C_TXDMA = 0x20U,
I2C_RXDMA = 0x10U
};
I was tempted to use I2C_RXDMA in configuring DREQASI
dmaREG->DREQASI[0] |= I2C_RXDMA<<(24-8*DMA_CH2); // wrong!!
According to the TMS570 Data Sheet, Section 6.16.2, however, the DMA Request Lines are 10 and 11 for the I2C receive and transmit event, respectively. I searched i2c.c and example code for references to these named constants and found nothing.
dmaREG->DREQASI[0] |= 10<<(24-8*DMA_CH2); // should work
Regards
Rainald