mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Moving io_def_generated to platform (#14120)
This commit is contained in:
parent
b1604e8459
commit
456d9fd4a3
13 changed files with 67 additions and 2 deletions
|
@ -113,6 +113,7 @@ VPATH := $(VPATH):$(LIB_MAIN_DIR)/APM32F4/Libraries/Device/Geehy/APM32F4xx
|
|||
INCLUDE_DIRS += \
|
||||
$(TARGET_PLATFORM_DIR)/startup \
|
||||
$(TARGET_PLATFORM_DIR) \
|
||||
$(PLATFORM_DIR)/common/stm32 \
|
||||
$(STDPERIPH_DIR)/Include \
|
||||
$(LIB_MAIN_DIR)/$(USBCORE_DIR)/Inc \
|
||||
$(LIB_MAIN_DIR)/$(USBCDC_DIR)/Inc \
|
||||
|
|
|
@ -63,6 +63,7 @@ DEVICE_STDPERIPH_SRC = $(STDPERIPH_SRC)
|
|||
INCLUDE_DIRS := $(INCLUDE_DIRS) \
|
||||
$(TARGET_PLATFORM_DIR)/startup \
|
||||
$(TARGET_PLATFORM_DIR) \
|
||||
$(PLATFORM_DIR)/common/stm32 \
|
||||
$(STDPERIPH_DIR)/inc \
|
||||
$(CMSIS_DIR)/cm4/core_support \
|
||||
$(CMSIS_DIR)/cm4 \
|
||||
|
|
25
src/platform/SIMULATOR/io_def_generated.h
Normal file
25
src/platform/SIMULATOR/io_def_generated.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is free software. You can redistribute this software
|
||||
* and/or modify this software under the terms of the GNU General
|
||||
* Public License as published by the Free Software Foundation,
|
||||
* either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this software.
|
||||
*
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define DEFIO_PORT_USED_COUNT 0
|
||||
#define DEFIO_IO_USED_COUNT 0
|
|
@ -252,3 +252,5 @@ MSC_SRC = \
|
|||
|
||||
DSP_LIB := $(LIB_MAIN_DIR)/CMSIS/DSP
|
||||
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM4
|
||||
|
||||
include $(TARGET_PLATFORM_DIR)/mk/STM32_COMMON.mk
|
||||
|
|
|
@ -211,3 +211,5 @@ SIZE_OPTIMISED_SRC += \
|
|||
|
||||
DSP_LIB := $(LIB_MAIN_DIR)/CMSIS/DSP
|
||||
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM7
|
||||
|
||||
include $(TARGET_PLATFORM_DIR)/mk/STM32_COMMON.mk
|
||||
|
|
|
@ -184,3 +184,5 @@ SIZE_OPTIMISED_SRC += \
|
|||
|
||||
DSP_LIB := $(LIB_MAIN_DIR)/CMSIS/DSP
|
||||
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM4
|
||||
|
||||
include $(TARGET_PLATFORM_DIR)/mk/STM32_COMMON.mk
|
||||
|
|
|
@ -218,3 +218,5 @@ SIZE_OPTIMISED_SRC += \
|
|||
|
||||
DSP_LIB := $(LIB_MAIN_DIR)/CMSIS/DSP
|
||||
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM7
|
||||
|
||||
include $(TARGET_PLATFORM_DIR)/mk/STM32_COMMON.mk
|
||||
|
|
|
@ -333,3 +333,5 @@ SIZE_OPTIMISED_SRC += \
|
|||
|
||||
DSP_LIB := $(LIB_MAIN_DIR)/CMSIS/DSP
|
||||
DEVICE_FLAGS += -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE -DARM_MATH_CM7
|
||||
|
||||
include $(TARGET_PLATFORM_DIR)/mk/STM32_COMMON.mk
|
||||
|
|
2
src/platform/STM32/mk/STM32_COMMON.mk
Normal file
2
src/platform/STM32/mk/STM32_COMMON.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
INCLUDE_DIRS += $(PLATFORM_DIR)/common/stm32
|
26
src/test/unit/io_def_generated.h
Normal file
26
src/test/unit/io_def_generated.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is free software. You can redistribute this software
|
||||
* and/or modify this software under the terms of the GNU General
|
||||
* Public License as published by the Free Software Foundation,
|
||||
* either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this software.
|
||||
*
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define DEFIO_PORT_USED_COUNT 0
|
||||
#define DEFIO_IO_USED_COUNT 0
|
||||
#define IO_TAG_NONE 0
|
|
@ -54,7 +54,7 @@ extern "C" {
|
|||
static rxRuntimeState_t config = rxRuntimeState_t();
|
||||
static rxSpiExtiConfig_t extiConfig;
|
||||
static const rxSpiConfig_t injectedConfig = {
|
||||
.extiIoTag = IO_TAG(PA0),
|
||||
.extiIoTag = IO_TAG_NONE,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ extern "C" {
|
|||
}
|
||||
|
||||
static const rxSpiConfig_t injectedConfig = {
|
||||
.extiIoTag = IO_TAG(PA0),
|
||||
.extiIoTag = IO_TAG_NONE,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue