/* * i2c.h * * Created on: 1 Jun 2019 * Author: maximilian */ #ifndef PLATFORM_I2C_H_ #define PLATFORM_I2C_H_ #include "stm32f10x.h" #include # define Timed (x) Timeout = 0xFFFF; while (x) \ { if (Timeout -- == 0) goto errReturn ;} void initI2C(I2C_TypeDef* i2cx , uint32_t speed, uint16_t own_address); //uint8_t pingI2C (I2C_TypeDef* i2cx, uint8_t SlaveAddress); #endif /* PLATFORM_I2C_H_ */