2020-02-07 14:57:44 +01:00
..
2020-02-07 14:57:44 +01:00
2020-02-07 14:57:44 +01:00
2020-02-07 14:57:44 +01:00

/*!
    \file  readme.txt
    \brief description of the slave transmitter
*/

/*
    Copyright (C) 2017 GigaDevice

    2014-12-26, V1.0.0, platform GD32F1x0(x=3,5)
    2016-01-15, V2.0.0, platform GD32F1x0(x=3,5,7,9)
    2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9)
    2017-06-19, V3.1.0, firmware update for GD32F1x0(x=3,5,7,9)
*/

  This demo is based on the GD32150R-EVAL/ GD32190R-EVAL board, it shows the 
I2C programming mode in slave transmitting mode.In this demo,BOARD_I2C is operated 
as slave transmitter,and the SCL line and SDA line of I2C0 interface are controled 
by the I/O pin PB10 and PB11(or PB6 and PB7) respectively.

  This demo shows the sending data process of the slave. And it will send the 
data in the i2c_transmitter array through the BOARD_I2C.

  The demo doesn't perform the data transfer actually, which is due to no specific 
master.In the specific application, we need config the master to start a data 
transmission.In addition,the master and the slave may need to be connected by 
the jumper if necessary.When the macro I2C_10BIT_ADDRESS is 1, I2C communicate in 
10 bit addressing mode, otherwise, I2C communicate in 7 bit addressing mode.