I2C master and slave testing example

Dependencies:   mbed-src

main.cpp

Committer:
Yunfeng
Date:
2015-08-14
Revision:
0:0c4c8f8e3e04

File content as of revision 0:0c4c8f8e3e04:

#include "fw_config.h"
#include "mbed.h"



#if SEL_BLINKY_TEST == 1
void blinky_test();
#endif

#if SEL_I2C_3200_TEST == 1
#if SEL_I2C_SLAVE_MODE == 1
void i2c_3200();
#else
void i2c_3200_master();
#endif
#endif


int main() {
#if SEL_I2C_3200_TEST == 1
#if SEL_I2C_SLAVE_MODE == 1
    i2c_3200();
#else
    i2c_3200_master ();
#endif
    while (1) {}
#endif
}