Cleanup make includes and formatting rules (#1860)
* Draft cleanup of the folder definition mess * Move old startup * Fixup! broken hacky includes * Update Makefile * Update Makefile * Update Makefile * Bulk format * Who knew, header guards are a wise idea * Squash some sizing warnings * Drop broken usb stack * Fix BLE headers to be sensible * Cleaning up proper c styling * We have newer clang, it does bracketing now * Run clang-format brackets * We can drop the old messy bracket-checker with newer clang format * WiP formatter * Align grids of scripts by right side Massively easier to read in nearly all cases * Excempt the table for compression from formatter
This commit is contained in:
@@ -22,18 +22,18 @@ bool BMA223::detect() {
|
||||
}
|
||||
|
||||
static const ACCEL_I2C_CLASS::I2C_REG i2c_registers[] = {
|
||||
//
|
||||
//
|
||||
{BMA223_PMU_RANGE, 0b00000011, 0}, // 2G range
|
||||
{BMA223_PMU_BW, 0b00001101, 0}, // 250Hz filter
|
||||
{BMA223_PMU_LPW, 0b00000000, 0}, // Full power
|
||||
{BMA223_ACCD_HBW, 0b00000000, 0}, // filtered data out
|
||||
{BMA223_INT_OUT_CTRL, 0b00001010, 0}, // interrupt active low and OD to get it hi-z
|
||||
//
|
||||
//
|
||||
{ BMA223_PMU_RANGE, 0b00000011, 0}, // 2G range
|
||||
{ BMA223_PMU_BW, 0b00001101, 0}, // 250Hz filter
|
||||
{ BMA223_PMU_LPW, 0b00000000, 0}, // Full power
|
||||
{ BMA223_ACCD_HBW, 0b00000000, 0}, // filtered data out
|
||||
{ BMA223_INT_OUT_CTRL, 0b00001010, 0}, // interrupt active low and OD to get it hi-z
|
||||
{BMA223_INT_RST_LATCH, 0b10000000, 0}, // interrupt active low and OD to get it hi-z
|
||||
{BMA223_INT_EN_0, 0b01000000, 0}, // Enable orientation
|
||||
{BMA223_INT_A, 0b00100111, 0}, // Setup orientation detection
|
||||
{ BMA223_INT_EN_0, 0b01000000, 0}, // Enable orientation
|
||||
{ BMA223_INT_A, 0b00100111, 0}, // Setup orientation detection
|
||||
|
||||
//
|
||||
//
|
||||
};
|
||||
bool BMA223::initalize() {
|
||||
// Setup acceleration readings
|
||||
|
||||
Reference in New Issue
Block a user