i2c: all function calls are consistent. fixed some MISRA errors.

This commit is contained in:
A.M. Rowsell 2026-06-30 00:31:20 -04:00
commit 958b2e8e00
7 changed files with 71 additions and 68 deletions

5
bmp.h
View file

@ -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 {