Create a project for TT_Mxx.

Committer:
ThunderSoft
Date:
Thu Mar 21 09:03:32 2019 +0000
Revision:
0:369a1b265ddb
Add code for FRDM_FXS_MULTI_B

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ThunderSoft 0:369a1b265ddb 1 #ifndef COMMON_DEFINE_H
ThunderSoft 0:369a1b265ddb 2 #define COMMON_DEFINE_H
ThunderSoft 0:369a1b265ddb 3
ThunderSoft 0:369a1b265ddb 4
ThunderSoft 0:369a1b265ddb 5 #include "mbed.h"
ThunderSoft 0:369a1b265ddb 6
ThunderSoft 0:369a1b265ddb 7
ThunderSoft 0:369a1b265ddb 8 #define TwoWire I2C
ThunderSoft 0:369a1b265ddb 9 #define delay(x) wait_ms(x)
ThunderSoft 0:369a1b265ddb 10
ThunderSoft 0:369a1b265ddb 11
ThunderSoft 0:369a1b265ddb 12 void i2cWrite(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:369a1b265ddb 13
ThunderSoft 0:369a1b265ddb 14 void i2cRead(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:369a1b265ddb 15
ThunderSoft 0:369a1b265ddb 16 void i2cWriteForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:369a1b265ddb 17
ThunderSoft 0:369a1b265ddb 18 void i2cReadForVL6180X(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:369a1b265ddb 19
ThunderSoft 0:369a1b265ddb 20 void i2cReadForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToRead);
ThunderSoft 0:369a1b265ddb 21
ThunderSoft 0:369a1b265ddb 22 void i2cWriteForFXS_MUTIL(I2C * dev_i2c,uint8_t address,uint8_t* pBuffer, uint16_t RegisterAddr, uint16_t NumByteToWrite);
ThunderSoft 0:369a1b265ddb 23
ThunderSoft 0:369a1b265ddb 24 #endif