1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Update compass drivers so they do not include "board.h". It is now clear

what all compass drivers need to compile and what was unnecessarily
included before.

LED macros now moved into light_led.h
This commit is contained in:
Dominic Clifton 2014-04-17 12:33:59 +01:00
parent 1205765b4c
commit b6232573c0
11 changed files with 55 additions and 47 deletions

View file

@ -1,5 +1,17 @@
#pragma once
typedef enum {
ALIGN_DEFAULT = 0, // driver-provided alignment
CW0_DEG = 1,
CW90_DEG = 2,
CW180_DEG = 3,
CW270_DEG = 4,
CW0_DEG_FLIP = 5,
CW90_DEG_FLIP = 6,
CW180_DEG_FLIP = 7,
CW270_DEG_FLIP = 8
} sensor_align_e;
typedef void (* sensorInitFuncPtr)(sensor_align_e align); // sensor init prototype
typedef void (* sensorReadFuncPtr)(int16_t *data); // sensor read and align prototype