You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
421 B
20 lines
421 B
/*
|
|
* i2c.h
|
|
*
|
|
* Created on: 1 Jun 2019
|
|
* Author: maximilian
|
|
*/
|
|
|
|
#ifndef PLATFORM_I2C_H_
|
|
#define PLATFORM_I2C_H_
|
|
|
|
#include "stm32f10x.h"
|
|
#include <stdlib.h>
|
|
|
|
# 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_ */
|
|
|