1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fix USE_xxx positions

This commit is contained in:
jflyper 2017-12-11 00:55:06 +09:00
parent bb79830f03
commit 54f5df3ca0
11 changed files with 25 additions and 17 deletions

View file

@ -21,6 +21,8 @@
#include <platform.h>
#if defined(USE_I2C) && !defined(SOFT_I2C)
#include "build/debug.h"
#include "drivers/system.h"
@ -31,8 +33,6 @@
#include "drivers/bus_i2c.h"
#include "drivers/bus_i2c_impl.h"
#if defined(USE_I2C) && !defined(SOFT_I2C)
#define IOCFG_I2C_PU IO_CONFIG(GPIO_Mode_AF, GPIO_Speed_50MHz, GPIO_OType_OD, GPIO_PuPd_UP)
#define IOCFG_I2C IO_CONFIG(GPIO_Mode_AF, GPIO_Speed_50MHz, GPIO_OType_OD, GPIO_PuPd_NOPULL)