48 #undef I2CMasterInitExpClk
49 #define I2CMasterInitExpClk NOROM_I2CMasterInitExpClk
51 #define I2CMasterErr NOROM_I2CMasterErr
53 #define I2CIntRegister NOROM_I2CIntRegister
54 #undef I2CIntUnregister
55 #define I2CIntUnregister NOROM_I2CIntUnregister
74 ASSERT(I2CBaseValid(ui32Base));
99 ui32TPR = ((ui32I2CClk + (2 * 10 * ui32SCLFreq) - 1) / (2 * 10 * ui32SCLFreq)) - 1;
117 ASSERT(I2CBaseValid(ui32Base));
159 ASSERT(I2CBaseValid(ui32Base));
190 ASSERT(I2CBaseValid(ui32Base));
static void I2CMasterEnable(uint32_t ui32Base)
Enables the I2C Master block.
#define I2C_MASTER_ERR_NONE
void I2CMasterInitExpClk(uint32_t ui32Base, uint32_t ui32I2CClk, bool bFast)
Initializes the I2C Master block.
uint32_t I2CMasterErr(uint32_t ui32Base)
Gets the error status of the I2C Master module.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
void I2CIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Registers an interrupt handler for the I2C module.
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void I2CIntUnregister(uint32_t ui32Base)
Unregisters an interrupt handler for the I2C module.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.