Mercurial > public > ostc4
view Small_CPU/Inc/i2c.h @ 162:ad98da7e74f8 linux-build
OSTC4pack_V4: do not hard code output filename for fonts
... and be a bit more polite. When called without parameters, the
packer simply crashed. Now, print a trivial usage line.
But the real change is, not hard coding the fonts output file name.
This is simply not flexible and inconvenient.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Thu, 21 Feb 2019 10:29:26 +0100 |
parents | 5f11787b4f42 |
children | e9cce686fe41 |
line wrap: on
line source
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef I2C_H #define I2C_H /* Drucksensor */ #define DEVICE_PRESSURE 0xEE /* Kompass */ #define DEVICE_ACCELARATOR_MMA8452Q 0x38 // 0x1C // chip 3 #define DEVICE_COMPASS_HMC5883L 0x3C //0x1E // chip 4 //#define DEVICE_ACCELARATOR_303D 0x1E // x0011110 // SA0 to GND #define DEVICE_COMPASS_303D 0x3C // 0x1E // x0011110_ // SA0 to GND #define DEVICE_ACCELARATOR_303DLHC 0x32 // 0x19 // x0011001_ // SA0 to GND /* Battery Gas Gauge */ #define DEVICE_BATTERYGAUGE 0xC8 // 0x64 /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" HAL_StatusTypeDef I2C_Master_Transmit( uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef I2C_Master_TransmitNoStop( uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef I2C_Master_Receive( uint16_t DevAddress, uint8_t *pData, uint16_t Size); HAL_StatusTypeDef MX_I2C1_Init(void); void I2C_DeInit(void); HAL_StatusTypeDef I2C1_Status(void); GPIO_PinState MX_I2C1_TestAndClear(void); //void I2C_Error(void); #endif /* I2C_H */