From e399dbc4407766fa2e2e11c7018bedbdf2ece721 Mon Sep 17 00:00:00 2001 From: CUAV_gitfishup Date: Fri, 13 Nov 2020 22:45:57 +0800 Subject: [PATCH] boards: CUAV Nora support cuav_neo_v2_pro and disable CONFIG_STM32H7_BDMA --- boards/cuav/nora/nuttx-config/nsh/defconfig | 1 - boards/cuav/nora/src/board_config.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/boards/cuav/nora/nuttx-config/nsh/defconfig b/boards/cuav/nora/nuttx-config/nsh/defconfig index 4346d6c905..a3e21a9bd1 100644 --- a/boards/cuav/nora/nuttx-config/nsh/defconfig +++ b/boards/cuav/nora/nuttx-config/nsh/defconfig @@ -156,7 +156,6 @@ CONFIG_STDIO_BUFFER_SIZE=256 CONFIG_STM32H7_ADC1=y CONFIG_STM32H7_BBSRAM=y CONFIG_STM32H7_BBSRAM_FILES=5 -CONFIG_STM32H7_BDMA=y CONFIG_STM32H7_BKPSRAM=y CONFIG_STM32H7_DMA1=y CONFIG_STM32H7_DMA2=y diff --git a/boards/cuav/nora/src/board_config.h b/boards/cuav/nora/src/board_config.h index 765d992c84..01baa4bf3d 100644 --- a/boards/cuav/nora/src/board_config.h +++ b/boards/cuav/nora/src/board_config.h @@ -129,7 +129,7 @@ #define GPIO_nVDD_5V_PERIPH_OC /* PJ4 */ (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTJ|GPIO_PIN4) /* Power switch controls ******************************************************/ -#define VDD_5V_PERIPH_EN(on_true) px4_arch_gpiowrite(GPIO_nVDD_5V_PERIPH_EN, !(on_true)) +#define VDD_5V_PERIPH_EN(on_true) px4_arch_gpiowrite(GPIO_nVDD_5V_PERIPH_EN, (on_true)) #define VDD_5V_HIPOWER_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_5V_HIPOWER_EN, (on_true)) #define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_3V3_SD_CARD_EN, (on_true))