1
0
Fork 0
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:
Jay Blackman 2025-01-04 00:22:25 +11:00 committed by GitHub
parent b1604e8459
commit 456d9fd4a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 67 additions and 2 deletions

View file

@ -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 \

View file

@ -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 \

View 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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,2 @@
INCLUDE_DIRS += $(PLATFORM_DIR)/common/stm32

View 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

View file

@ -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,
};
}

View file

@ -135,7 +135,7 @@ extern "C" {
}
static const rxSpiConfig_t injectedConfig = {
.extiIoTag = IO_TAG(PA0),
.extiIoTag = IO_TAG_NONE,
};
}