From 27023068499f1a1deb1c48e0f7d92633151160ea Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 16 Feb 2021 21:26:12 -0500 Subject: [PATCH] boards: mRo pixracer pro fix incorrect SPI2 sck --- .vscode/cmake-variants.yaml | 10 ++++++++++ boards/mro/pixracerpro/nuttx-config/include/board.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.vscode/cmake-variants.yaml b/.vscode/cmake-variants.yaml index 988bdb420a..308ed68f50 100644 --- a/.vscode/cmake-variants.yaml +++ b/.vscode/cmake-variants.yaml @@ -131,6 +131,16 @@ CONFIG: buildType: MinSizeRel settings: CONFIG: mro_ctrl-zero-f7_default + mro_pixracerpro_bootloader: + short: mro_pixracerpro_bootloader + buildType: MinSizeRel + settings: + CONFIG: mro_pixracerpro_bootloader + mro_pixracerpro_default: + short: mro_pixracerpro_default + buildType: MinSizeRel + settings: + CONFIG: mro_pixracerpro_default mro_x21-777_default: short: mro_x2.1-777 buildType: MinSizeRel diff --git a/boards/mro/pixracerpro/nuttx-config/include/board.h b/boards/mro/pixracerpro/nuttx-config/include/board.h index 15bee730b3..1fffee10ba 100644 --- a/boards/mro/pixracerpro/nuttx-config/include/board.h +++ b/boards/mro/pixracerpro/nuttx-config/include/board.h @@ -262,7 +262,7 @@ #define GPIO_SPI1_MISO GPIO_SPI1_MISO_1 /* PA6 */ #define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1 /* PA7 */ -#define GPIO_SPI2_SCK ADJ_SLEW_RATE(GPIO_SPI2_SCK_2) /* PB10 */ +#define GPIO_SPI2_SCK ADJ_SLEW_RATE(GPIO_SPI2_SCK_3) /* PB10 */ #define GPIO_SPI2_MISO GPIO_SPI2_MISO_1 /* PB14 */ #define GPIO_SPI2_MOSI GPIO_SPI2_MOSI_1 /* PB15 */