mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #7642 from mikeller/fix_missing_platform_includes
Fix missing 'platform.h' includes in compilation units, and make them stay away.
This commit is contained in:
commit
b5fba14cb3
40 changed files with 104 additions and 9 deletions
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "atomic.h"
|
||||
|
||||
#if defined(UNIT_TEST)
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
const char * const targetName = __TARGET__;
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "bitarray.h"
|
||||
|
||||
#define BITARRAY_BIT_OP(array, bit, op) ((array)[(bit) / (sizeof((array)[0]) * 8)] op (1 << ((bit) % (sizeof((array)[0]) * 8))))
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "color.h"
|
||||
#include "colorconversion.h"
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "streambuf.h"
|
||||
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "encoding.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,8 @@ Stripped down for BF use
|
|||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
/* Workaround a lack of optimization in gcc */
|
||||
float exp_cst1 = 2139095040.f;
|
||||
float exp_cst2 = 0.f;
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "huffman.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include <stdint.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "axis.h"
|
||||
#include "maths.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "streambuf.h"
|
||||
|
||||
sbuf_t *sbufInit(sbuf_t *sbuf, uint8_t *ptr, uint8_t *end)
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "typeconversion.h"
|
||||
|
||||
int isalnum(int c)
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "common/utils.h"
|
||||
|
||||
#define _STRTO_ENDPTR 1
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "common/maths.h"
|
||||
#include "common/printf.h"
|
||||
#include "common/time.h"
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "maths.h"
|
||||
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <platform.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "build/debug.h"
|
||||
#include "barometer.h"
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "buf_writer.h"
|
||||
|
||||
bufWriter_t *bufWriterInit(uint8_t *b, int total_size, bufWrite_t writer, void *arg)
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
const char * const ownerNames[OWNER_TOTAL_COUNT] = {
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "sdcard_standard.h"
|
||||
#include "common/maths.h"
|
||||
|
||||
|
|
|
@ -18,8 +18,11 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "drivers/io.h"
|
||||
#include "timer.h"
|
||||
|
||||
#ifdef USE_TIMER_MGMT
|
||||
#include "pg/timerio.h"
|
||||
#endif
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <math.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build/debug.h"
|
||||
|
||||
#include "common/maths.h"
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "fat_standard.h"
|
||||
|
||||
bool fat16_isEndOfChainMarker(uint16_t clusterNumber)
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "drivers/flash.h"
|
||||
|
||||
#include "io/flashfs.h"
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "common/crc.h"
|
||||
#include "common/maths.h"
|
||||
#include "common/streambuf.h"
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "common/utils.h"
|
||||
|
||||
#include "emfat.h"
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "pg/pg_ids.h"
|
||||
#include "pg/rcdevice.h"
|
||||
|
||||
|
@ -27,4 +29,4 @@ void pgResetFn_rcdeviceConfig(rcdeviceConfig_t *rcdeviceConfig)
|
|||
{
|
||||
rcdeviceConfig->initDeviceAttempts = 6;
|
||||
rcdeviceConfig->initDeviceAttemptInterval = 1000;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,6 +99,8 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "stm32f30x.h"
|
||||
|
||||
uint32_t hse_value = HSE_VALUE;
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "hw_config.h"
|
||||
#include "stm32_it.h"
|
||||
#include "usb_lib.h"
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_lib.h"
|
||||
#include "usb_desc.h"
|
||||
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_lib.h"
|
||||
#include "usb_desc.h"
|
||||
#include "usb_mem.h"
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_lib.h"
|
||||
#include "usb_prop.h"
|
||||
#include "usb_pwr.h"
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_lib.h"
|
||||
#include "usb_conf.h"
|
||||
#include "usb_prop.h"
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_lib.h"
|
||||
#include "usb_conf.h"
|
||||
#include "usb_pwr.h"
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "drivers/serial_usb_vcp.h"
|
||||
#include "drivers/time.h"
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "stm32f4xx_it.h"
|
||||
#include "stm32f4xx_conf.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usb_bsp.h"
|
||||
#include "usbd_conf.h"
|
||||
#include "stm32f4xx_conf.h"
|
||||
|
|
|
@ -19,16 +19,19 @@
|
|||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED
|
||||
#pragma data_alignment = 4
|
||||
#endif /* USB_OTG_HS_INTERNAL_DMA_ENABLED */
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usbd_cdc_vcp.h"
|
||||
#include "stm32f4xx_conf.h"
|
||||
#include "stdbool.h"
|
||||
#include "drivers/time.h"
|
||||
|
||||
#ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED
|
||||
#pragma data_alignment = 4
|
||||
#endif /* USB_OTG_HS_INTERNAL_DMA_ENABLED */
|
||||
|
||||
__ALIGN_BEGIN USB_OTG_CORE_HANDLE USB_OTG_dev __ALIGN_END;
|
||||
|
||||
LINE_CODING g_lc;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "usbd_usr.h"
|
||||
#include "usbd_ioreq.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue