Mercurial > public > ostc4
comparison Small_CPU/Src/i2c.c @ 165:e9cce686fe41
Minor: Some documentation for new hardware
author | heinrichsweikamp |
---|---|
date | Fri, 08 Mar 2019 10:31:32 +0100 |
parents | 22a1094545f3 |
children | 7e749084f347 |
comparison
equal
deleted
inserted
replaced
164:3e3d1ebba956 | 165:e9cce686fe41 |
---|---|
7 /* Private macro -------------------------------------------------------------*/ | 7 /* Private macro -------------------------------------------------------------*/ |
8 | 8 |
9 | 9 |
10 // =============================================================================== | 10 // =============================================================================== |
11 // I2C addresses - see i2c.h | 11 // I2C addresses - see i2c.h |
12 /// | 12 // =============================================================================== |
13 /// #define DEVICE_PRESSURE 0xEE (0x77) Write 0xEE Read 0xEF | |
14 /// #define DEVICE_COMPASS_HMC5883L 0x3C (0x1E) Write 0x3C Read 0x3D | |
15 /// #define DEVICE_ACCELARATOR_MMA8452Q 0x38 (0x1C) Write 0x38 Read 0x39 | |
16 /// #define DEVICE_BATTERYGAUGE 0xC8 (0x64) Write 0xC8 | |
17 | 13 |
18 /// #define DEVICE_COMPASS_303D 0x3C // 0x1E // x0011110 // SA0 to GND | |
19 /// | |
20 /// 0x6E 0x48 -> 0x6F 3d d1 86 3f 0x66 58 | |
21 /// | |
22 // =============================================================================== | |
23 I2C_HandleTypeDef I2cHandle; | 14 I2C_HandleTypeDef I2cHandle; |
24 | 15 |
25 | 16 |
26 /* | 17 /* |
27 static void I2C_Error_Handler(void) | 18 static void I2C_Error_Handler(void) |