mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 16:13:33 +08:00
Remove include <log.h> from defines.h
The reason for this is that log.h includes drv_hrt.h which sucks in half the project's include files with it, which causes strange build issues
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
namespace cdev
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
|
||||
#include "cdevtest_example.h"
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/tasks.h>
|
||||
#include <px4_platform_common/time.h>
|
||||
#include <lib/cdev/CDev.hpp>
|
||||
|
||||
@@ -40,8 +40,11 @@
|
||||
#include "Block.hpp"
|
||||
#include "BlockParam.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
|
||||
namespace control
|
||||
{
|
||||
|
||||
|
||||
@@ -39,10 +39,13 @@
|
||||
|
||||
#include "BlockParam.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include <containers/List.hpp>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
|
||||
namespace control
|
||||
{
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
namespace device
|
||||
|
||||
@@ -40,9 +40,12 @@
|
||||
#ifndef _DEVICE_DEVICE_HPP
|
||||
#define _DEVICE_DEVICE_HPP
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
/*
|
||||
* Includes here should only cover the needs of the framework definitions.
|
||||
*/
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
* LED driver to control the onboard LED(s) via ioctl interface.
|
||||
*/
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <lib/cdev/CDev.hpp>
|
||||
#include <drivers/drv_board_led.h>
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
#include <lib/matrix/matrix/math.hpp>
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
*/
|
||||
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <px4_platform_common/shutdown.h>
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/**
|
||||
* @file parameters_common.cpp
|
||||
*
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
*/
|
||||
|
||||
#define PARAM_IMPLEMENTATION
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "param.h"
|
||||
#include "parameters_ioctl.h"
|
||||
#include <px4_platform_common/defines.h>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#define PARAM_IMPLEMENTATION
|
||||
#include "param.h"
|
||||
#include <px4_platform/board_ctrl.h>
|
||||
#include <px4_platform_common/defines.h>
|
||||
|
||||
#define _PARAMIOC(_n) (_PX4_IOC(_PARAMIOCBASE, _n))
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <parameters/px4_parameters.hpp>
|
||||
#include <sys/boardctl.h>
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
|
||||
#include "parameters_common.cpp"
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <board_config.h>
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <math.h>
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <matrix/math.hpp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user