Include
ao_i2c.h |
ao_sys.h |
stdbool.h |
xc.h |
Configuration
AO_I2C_2
#define AO_I2C_2 (false)
Defines whether to use the module.
Functions
ao_i2c_baud_2
#define ao_i2c_baud_2(f) \
( \
ao_i2c_baud \
( \
ao_i2c_reg_2(), \
AO_SYS_CLOCK_I2C2, \
f \
) \
)
Sets up the baud rate, in bits per second.
ao_i2c_reg_2
#define ao_i2c_reg_2() \
( \
(ao_i2c_reg_t *) \
( \
_I2C2_BASE_ADDRESS \
) \
)
Gets the control registers.