Forked repo of Platform Drivers- Analog Devices
Diff: i2c.h
- Revision:
- 17:af1f2416dd26
diff -r 61ad39564f45 -r af1f2416dd26 i2c.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i2c.h Tue Jul 13 13:58:07 2021 +0530 @@ -0,0 +1,30 @@ +/***************************************************************************//** + * @file i2c.h + * @author MPhalke (Mahesh.Phalke@analog.com) +******************************************************************************** + * Copyright (c) 2021 Analog Devices, Inc. + * All rights reserved. + * + * This software is proprietary to Analog Devices, Inc. and its licensors. + * By using this software you agree to the terms of the associated + * Analog Devices Software License Agreement. +*******************************************************************************/ + +#ifndef MBED_I2C_H_ +#define MBED_I2C_H_ + +/******************************************************************************/ +/************************ Functions Declarations ******************************/ +/******************************************************************************/ + +#define i2c_init(desc, init_param) i2c_init_noos(desc, init_param) +#define i2c_write(desc, data, bytes_number, stop_bits) i2c_write_noos(desc, data, bytes_number, stop_bits) +#define i2c_read(desc, data, bytes_number, stop_bits) i2c_read_noos(desc, data, bytes_number, stop_bits) + +/******************************************************************************/ +/***************************** Include Files **********************************/ +/******************************************************************************/ + +#include "no-OS/include/i2c.h" + +#endif // MBED_I2C_H_ \ No newline at end of file