i2c: all function calls are consistent. fixed some MISRA errors.
This commit is contained in:
parent
657ee06eed
commit
958b2e8e00
7 changed files with 71 additions and 68 deletions
5
bmp.h
5
bmp.h
|
|
@ -2,7 +2,6 @@
|
|||
#define BMP_H
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define BMP_ADDR 0x77
|
||||
|
|
@ -10,10 +9,6 @@ static const uint8_t BMP_STATUS = 0x03;
|
|||
static const uint8_t BMP_DATA = 0x04;
|
||||
static const uint8_t BMP_CAL_ADDR = 0x31;
|
||||
#define BMP_CAL_LEN 21
|
||||
static const uint8_t BMP_RESET[2];
|
||||
static const uint8_t BMP_CAL_DATA[21];
|
||||
static const uint8_t BMP_SETUP[6];
|
||||
static const uint8_t BMP_START[2];
|
||||
|
||||
// instead of a bunch of defines
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue