If I create a component with I2C function (cal_i2c), is it necessary to insert a "Master_Init" at the beginning of the function and a "Master_Uninit" at the end of the function?
Thanks in advance for the help!
Christina
A question about Create Component [solved]
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: A question about Create Component
Hi Christina,
Master_Init is required in your component's initialise macro before you call any other of the I2C CAL functions. The Uninit macro is not required unless you want to be able to deactivate the I2C peripheral.
Master_Init is required in your component's initialise macro before you call any other of the I2C CAL functions. The Uninit macro is not required unless you want to be able to deactivate the I2C peripheral.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel