Files
IronOS/workspace/ts100/inc/I2C.h
Ben V. Brown 1cbcba924f Adding auto-rotation to the screen
Adds auto rotation support using the proper orientation detection. (Not
using raw values).
Should Fix and close #29
2017-07-27 11:46:04 +10:00

18 lines
470 B
C

/*
* I2C.h
* I2C wrapper for the stm32 hardware I2C port
*/
#ifndef __I2C_H
#define __I2C_H
#include "stm32f10x_i2c.h"
#include "stm32f10x.h"
#include "stm32f10x_gpio.h"
void I2C_Configuration(void);
void I2C_PageWrite(u8* pbuf, u8 numbyte, u8 deviceaddr);
int I2C_Master_Read(uint8_t deviceAddr, uint8_t readAddr, uint8_t* pBuffer,
uint16_t numByteToRead);
#endif
/******************************** END OF FILE *********************************/