mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 19:40:27 +03:00
Build bugs fixing
This commit is contained in:
parent
2ff19bfac0
commit
49e06ef2ae
3 changed files with 5 additions and 3 deletions
|
@ -82,7 +82,9 @@ typedef enum
|
||||||
(__DMA_HANDLE__).Parent = (__HANDLE__); \
|
(__DMA_HANDLE__).Parent = (__HANDLE__); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
#ifndef UNUSED
|
||||||
#define UNUSED(x) ((void)(x))
|
#define UNUSED(x) ((void)(x))
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @brief Reset the Handle's State field.
|
/** @brief Reset the Handle's State field.
|
||||||
* @param __HANDLE__: specifies the Peripheral Handle.
|
* @param __HANDLE__: specifies the Peripheral Handle.
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#ifdef USE_SDCARD
|
#ifdef USE_SDCARD
|
||||||
|
|
||||||
|
#include "common/utils.h"
|
||||||
|
|
||||||
#include "drivers/nvic.h"
|
#include "drivers/nvic.h"
|
||||||
#include "drivers/io.h"
|
#include "drivers/io.h"
|
||||||
#include "dma.h"
|
#include "dma.h"
|
||||||
|
@ -55,9 +57,6 @@
|
||||||
*/
|
*/
|
||||||
#define SDCARD_NON_DMA_CHUNK_SIZE 256
|
#define SDCARD_NON_DMA_CHUNK_SIZE 256
|
||||||
|
|
||||||
#define STATIC_ASSERT(condition, name ) \
|
|
||||||
typedef char assert_failed_ ## name [(condition) ? 1 : -1 ]
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// In these states we run at the initialization 400kHz clockspeed:
|
// In these states we run at the initialization 400kHz clockspeed:
|
||||||
SDCARD_STATE_NOT_PRESENT = 0,
|
SDCARD_STATE_NOT_PRESENT = 0,
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "fc/config.h"
|
#include "fc/config.h"
|
||||||
#include "fc/controlrate_profile.h"
|
#include "fc/controlrate_profile.h"
|
||||||
#include "fc/rc_controls.h"
|
#include "fc/rc_controls.h"
|
||||||
|
#include "fc/rc_modes.h"
|
||||||
#include "io/serial.h"
|
#include "io/serial.h"
|
||||||
#include "rx/rx.h"
|
#include "rx/rx.h"
|
||||||
#include "sensors/sensors.h"
|
#include "sensors/sensors.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue