Whitespace cleanup to quiet new blank line at EOF git hook.

This commit is contained in:
mcsauder
2020-04-01 10:51:41 -06:00
committed by Daniel Agar
parent 5634b68354
commit 6548fde024
102 changed files with 0 additions and 108 deletions

View File

@@ -2,4 +2,3 @@
# Quad X with clock-wise motor assigment # Quad X with clock-wise motor assigment
R: 4xcw 10000 10000 10000 0 R: 4xcw 10000 10000 10000 0

View File

@@ -39,4 +39,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(5), // i2c-5: GPS/Compass #2 initI2CBusExternal(5), // i2c-5: GPS/Compass #2
initI2CBusExternal(3), // i2c-3: GPS/Compass #3 initI2CBusExternal(3), // i2c-3: GPS/Compass #3
}; };

View File

@@ -51,4 +51,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -38,4 +38,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(3), initI2CBusExternal(3),
initI2CBusExternal(9), initI2CBusExternal(9),
}; };

View File

@@ -38,4 +38,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(3), initI2CBusExternal(3),
initI2CBusExternal(9), initI2CBusExternal(9),
}; };

View File

@@ -38,4 +38,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusInternal(3), initI2CBusInternal(3),
initI2CBusExternal(4), initI2CBusExternal(4),
}; };

View File

@@ -52,4 +52,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -56,4 +56,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -91,4 +91,3 @@ void rc_cleaning(void);
#define rc_filter_butterworth_lowpass rc_butterworth_lowpass #define rc_filter_butterworth_lowpass rc_butterworth_lowpass
#endif #endif

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), // i2c-1: pins P9 17,18 initI2CBusExternal(1), // i2c-1: pins P9 17,18
initI2CBusInternal(2), // i2c-2: pins P9 19,20 - bmp280, mpu9250 initI2CBusInternal(2), // i2c-2: pins P9 19,20 - bmp280, mpu9250
}; };

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
initI2CBusInternal(3), initI2CBusInternal(3),
}; };

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -39,4 +39,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusInternal(3), initI2CBusInternal(3),
initI2CBusExternal(4), initI2CBusExternal(4),
}; };

View File

@@ -60,4 +60,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -48,4 +48,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -49,4 +49,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -51,4 +51,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -39,4 +39,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(3), initI2CBusExternal(3),
initI2CBusInternal(4), initI2CBusInternal(4),
}; };

View File

@@ -52,4 +52,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -51,4 +51,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -52,4 +52,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -48,4 +48,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -49,4 +49,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -48,4 +48,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -49,4 +49,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusInternal(PX4_BUS_NUMBER_TO_PX4(1)), initI2CBusInternal(PX4_BUS_NUMBER_TO_PX4(1)),
initI2CBusExternal(PX4_BUS_NUMBER_TO_PX4(0)), initI2CBusExternal(PX4_BUS_NUMBER_TO_PX4(0)),
}; };

View File

@@ -38,4 +38,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(2), initI2CBusExternal(2),
initI2CBusInternal(3), initI2CBusInternal(3),
}; };

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusInternal(PX4_BUS_NUMBER_TO_PX4(1)), initI2CBusInternal(PX4_BUS_NUMBER_TO_PX4(1)),
initI2CBusExternal(PX4_BUS_NUMBER_TO_PX4(0)), initI2CBusExternal(PX4_BUS_NUMBER_TO_PX4(0)),
}; };

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(2), initI2CBusExternal(2),
}; };

View File

@@ -50,4 +50,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -199,4 +199,3 @@ constexpr px4_spi_bus_all_hw_t px4_spi_buses_all_hw[BOARD_NUM_SPI_CFG_HW_VERSION
// HW_VER_FMUV2X: treat as HW_VER_FMUV2 // HW_VER_FMUV2X: treat as HW_VER_FMUV2
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses_all_hw); static constexpr bool unused = validateSPIConfig(px4_spi_buses_all_hw);

View File

@@ -49,4 +49,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -199,4 +199,3 @@ constexpr px4_spi_bus_all_hw_t px4_spi_buses_all_hw[BOARD_NUM_SPI_CFG_HW_VERSION
// HW_VER_FMUV2X: treat as HW_VER_FMUV2 // HW_VER_FMUV2X: treat as HW_VER_FMUV2
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses_all_hw); static constexpr bool unused = validateSPIConfig(px4_spi_buses_all_hw);

View File

@@ -49,4 +49,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -73,4 +73,3 @@ __EXPORT bool board_has_bus(enum board_bus_types type, uint32_t bus)
return rv; return rv;
} }

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusInternal(1), initI2CBusInternal(1),
initI2CBusExternal(2), initI2CBusExternal(2),
}; };

View File

@@ -53,4 +53,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
initSPIConfigExternal(SPI::CS{GPIO::PortG, GPIO::Pin11}), initSPIConfigExternal(SPI::CS{GPIO::PortG, GPIO::Pin11}),
}), }),
}; };

View File

@@ -39,4 +39,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
initI2CBusInternal(3), initI2CBusInternal(3),
}; };

View File

@@ -61,4 +61,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -60,4 +60,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };
static constexpr bool unused = validateSPIConfig(px4_spi_buses); static constexpr bool unused = validateSPIConfig(px4_spi_buses);

View File

@@ -76,4 +76,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -52,4 +52,3 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = constexpr io_timers_channel_mapping_t io_timers_channel_mapping =
initIOTimerChannelMapping(io_timers, timer_io_channels); initIOTimerChannelMapping(io_timers, timer_io_channels);

View File

@@ -37,4 +37,3 @@ constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(0), initI2CBusExternal(0),
initI2CBusInternal(1), initI2CBusInternal(1),
}; };

View File

@@ -39,4 +39,3 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
initSPIDevice(DRV_IMU_DEVTYPE_MPU9250, 0), initSPIDevice(DRV_IMU_DEVTYPE_MPU9250, 0),
}), }),
}; };

View File

@@ -36,4 +36,3 @@
constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = { constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
}; };

View File

@@ -36,4 +36,3 @@
constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = { constexpr px4_i2c_bus_t px4_i2c_buses[I2C_BUS_MAX_BUS_ITEMS] = {
initI2CBusExternal(1), initI2CBusExternal(1),
}; };

View File

@@ -55,5 +55,3 @@ static inline int _constexpr_assert_failure(const char *msg)
* If executed at runtime, it has no effect other than slight runtime overhead. * If executed at runtime, it has no effect other than slight runtime overhead.
*/ */
#define constexpr_assert(expr, msg) if (!(expr)) { _constexpr_assert_failure(msg); } #define constexpr_assert(expr, msg) if (!(expr)) { _constexpr_assert_failure(msg); }

View File

@@ -97,4 +97,3 @@ private:
int _index{-1}; int _index{-1};
int _external_bus_counter{0}; int _external_bus_counter{0};
}; };

View File

@@ -245,5 +245,3 @@ protected:
} }
private: private:
}; };

View File

@@ -164,4 +164,3 @@ private:
int _external_bus_counter{0}; int _external_bus_counter{0};
int _bus_device_index{0}; int _bus_device_index{0};
}; };

View File

@@ -99,4 +99,3 @@ static inline constexpr io_timers_channel_mapping_t initIOTimerChannelMapping(co
return ret; return ret;
} }

View File

@@ -52,4 +52,3 @@ static inline constexpr px4_i2c_bus_t initI2CBusExternal(int bus)
ret.is_external = true; ret.is_external = true;
return ret; return ret;
} }

View File

@@ -610,5 +610,3 @@ static inline constexpr io_timers_t initIOPWM(PWM::FlexPWM pwm)
return ret; return ret;
} }

View File

@@ -129,4 +129,3 @@ static inline constexpr SPI::bus_device_external_cfg_t initSPIConfigExternal(SPI
ret.drdy_gpio = drdy_gpio; ret.drdy_gpio = drdy_gpio;
return ret; return ret;
} }

View File

@@ -34,4 +34,3 @@
#include "../../../kinetis/include/px4_arch/hw_description.h" #include "../../../kinetis/include/px4_arch/hw_description.h"

View File

@@ -33,4 +33,3 @@
#pragma once #pragma once
#include "../../../kinetis/include/px4_arch/i2c_hw_description.h" #include "../../../kinetis/include/px4_arch/i2c_hw_description.h"

View File

@@ -34,4 +34,3 @@
#include "../../../kinetis/include/px4_arch/io_timer_hw_description.h" #include "../../../kinetis/include/px4_arch/io_timer_hw_description.h"

View File

@@ -38,4 +38,3 @@ constexpr bool validateSPIConfig(const px4_spi_bus_t spi_busses_conf[SPI_BUS_MAX
{ {
return true; return true;
} }

View File

@@ -52,4 +52,3 @@ static inline constexpr px4_i2c_bus_t initI2CBusExternal(int bus)
ret.is_external = true; ret.is_external = true;
return ret; return ret;
} }

View File

@@ -150,4 +150,3 @@ __EXPORT uint32_t io_timer_channel_get_as_pwm_input(unsigned channel);
__END_DECLS __END_DECLS

View File

@@ -163,5 +163,3 @@ static inline constexpr io_timers_t initIOTimer(Timer::Timer timer)
return ret; return ret;
} }

View File

@@ -123,4 +123,3 @@ static inline constexpr SPI::bus_device_external_cfg_t initSPIConfigExternal(SPI
ret.drdy_gpio = drdy_gpio; ret.drdy_gpio = drdy_gpio;
return ret; return ret;
} }

View File

@@ -34,4 +34,3 @@
#include "../../../imxrt/include/px4_arch/hw_description.h" #include "../../../imxrt/include/px4_arch/hw_description.h"

View File

@@ -33,4 +33,3 @@
#pragma once #pragma once
#include "../../../imxrt/include/px4_arch/i2c_hw_description.h" #include "../../../imxrt/include/px4_arch/i2c_hw_description.h"

View File

@@ -34,4 +34,3 @@
#include "../../../imxrt/include/px4_arch/io_timer_hw_description.h" #include "../../../imxrt/include/px4_arch/io_timer_hw_description.h"

View File

@@ -38,4 +38,3 @@ constexpr bool validateSPIConfig(const px4_spi_bus_t spi_busses_conf[SPI_BUS_MAX
{ {
return true; return true;
} }

View File

@@ -150,4 +150,3 @@ __EXPORT uint32_t io_timer_channel_get_as_pwm_input(unsigned channel);
__END_DECLS __END_DECLS

View File

@@ -307,4 +307,3 @@ struct bus_device_external_cfg_t {
}; };
} // namespace SPI } // namespace SPI

View File

@@ -52,4 +52,3 @@ static inline constexpr px4_i2c_bus_t initI2CBusExternal(int bus)
ret.is_external = true; ret.is_external = true;
return ret; return ret;
} }

View File

@@ -274,4 +274,3 @@ static inline constexpr io_timers_t initIOTimer(Timer::Timer timer, DMA dshot_dm
return ret; return ret;
} }

View File

@@ -561,4 +561,3 @@ __EXPORT void board_spi_reset(int ms, int bus_mask)
#endif #endif
} }
} }

View File

@@ -40,4 +40,3 @@ static inline constexpr uint32_t getTimerUpdateDMAMap(Timer::Timer timer, const
// not used on STM32F1 // not used on STM32F1
return 0; return 0;
} }

View File

@@ -34,4 +34,3 @@
#include "../../../stm32_common/include/px4_arch/io_timer.h" #include "../../../stm32_common/include/px4_arch/io_timer.h"

View File

@@ -48,4 +48,3 @@ __BEGIN_DECLS
#define PX4_NUMBER_I2C_BUSES STM32_NI2C #define PX4_NUMBER_I2C_BUSES STM32_NI2C
__END_DECLS __END_DECLS

View File

@@ -98,4 +98,3 @@ static inline constexpr uint32_t getTimerUpdateDMAMap(Timer::Timer timer, const
constexpr_assert(dma_map != 0, "Invalid DMA config for given timer"); constexpr_assert(dma_map != 0, "Invalid DMA config for given timer");
return dma_map; return dma_map;
} }

View File

@@ -34,4 +34,3 @@
#include "../../../stm32_common/include/px4_arch/io_timer.h" #include "../../../stm32_common/include/px4_arch/io_timer.h"

View File

@@ -84,4 +84,3 @@ constexpr bool validateSPIConfig(const px4_spi_bus_t spi_busses_conf[SPI_BUS_MAX
return false; return false;
} }

View File

@@ -98,4 +98,3 @@ static inline constexpr uint32_t getTimerUpdateDMAMap(Timer::Timer timer, const
constexpr_assert(dma_map != 0, "Invalid DMA config for given timer"); constexpr_assert(dma_map != 0, "Invalid DMA config for given timer");
return dma_map; return dma_map;
} }

View File

@@ -33,4 +33,3 @@
#pragma once #pragma once
#include "../../../stm32_common/include/px4_arch/i2c_hw_description.h" #include "../../../stm32_common/include/px4_arch/i2c_hw_description.h"

View File

@@ -84,4 +84,3 @@ constexpr bool validateSPIConfig(const px4_spi_bus_t spi_busses_conf[SPI_BUS_MAX
return false; return false;
} }

View File

@@ -91,4 +91,3 @@ static inline constexpr uint32_t getTimerUpdateDMAMap(Timer::Timer timer, const
constexpr_assert(dma_map != 0, "Invalid DMA config for given timer"); constexpr_assert(dma_map != 0, "Invalid DMA config for given timer");
return dma_map; return dma_map;
} }

View File

@@ -33,4 +33,3 @@
#pragma once #pragma once
#include "../../../stm32_common/include/px4_arch/i2c_hw_description.h" #include "../../../stm32_common/include/px4_arch/i2c_hw_description.h"

View File

@@ -84,4 +84,3 @@ constexpr bool validateSPIConfig(const px4_spi_bus_t spi_busses_conf[SPI_BUS_MAX
return false; return false;
} }

View File

@@ -449,4 +449,3 @@ int px4_prctl(int option, const char *arg2, px4_task_t pid)
return rv; return rv;
} }

View File

@@ -51,4 +51,3 @@ static inline constexpr px4_i2c_bus_t initI2CBusExternal(int bus)
ret.is_external = true; ret.is_external = true;
return ret; return ret;
} }

View File

@@ -51,4 +51,3 @@ static inline constexpr px4_i2c_bus_t initI2CBusExternal(int bus)
ret.is_external = true; ret.is_external = true;
return ret; return ret;
} }

View File

@@ -116,4 +116,3 @@ BMP280_I2C::get_calibration(uint8_t addr)
return nullptr; return nullptr;
} }
} }

View File

@@ -93,4 +93,3 @@ extern "C" int mpl3115a2_main(int argc, char *argv[])
ThisDriver::print_usage(); ThisDriver::print_usage();
return -1; return -1;
} }

View File

@@ -259,4 +259,3 @@ MS5611_SPI::_transfer(uint8_t *send, uint8_t *recv, unsigned len)
{ {
return transfer(send, recv, len); return transfer(send, recv, len);
} }

View File

@@ -54,4 +54,3 @@ static_assert(led_control_s::ORB_QUEUE_LENGTH >= BOARD_MAX_LEDS, "led_control_s:
#if BOARD_MAX_LEDS > 8 // because led_mask is uint8_t #if BOARD_MAX_LEDS > 8 // because led_mask is uint8_t
#error "BOARD_MAX_LEDS too large. You need to change the led_mask type in the led_control uorb topic (and where it's used)" #error "BOARD_MAX_LEDS too large. You need to change the led_mask type in the led_control uorb topic (and where it's used)"
#endif #endif

View File

@@ -208,4 +208,3 @@ MPU6000_SPI::probe()
return (read(MPUREG_WHOAMI, &whoami, 1) > 0 && (whoami == expected)) ? 0 : -EIO; return (read(MPUREG_WHOAMI, &whoami, 1) > 0 && (whoami == expected)) ? 0 : -EIO;
} }

View File

@@ -334,5 +334,3 @@ private:
int set_presetmode(uint8_t presetmode); int set_presetmode(uint8_t presetmode);
}; };

View File

@@ -162,4 +162,3 @@ private:
*/ */
void write_reg(unsigned reg, uint8_t value); void write_reg(unsigned reg, uint8_t value);
}; };

View File

@@ -1,2 +1 @@
add_subdirectory(pcf8583) add_subdirectory(pcf8583)

View File

@@ -41,4 +41,3 @@
#endif #endif
#include <board_config.h> #include <board_config.h>

Some files were not shown because too many files have changed in this diff Show More