From 9aa450713a031ea2a8777b94055c81dad1306ef5 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 7 Nov 2016 20:20:06 +0000 Subject: [PATCH] Conditional compile of mode pins for STM32F4. --- IOSTM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IOSTM.cpp b/IOSTM.cpp index 1388367..b2ab143 100644 --- a/IOSTM.cpp +++ b/IOSTM.cpp @@ -117,6 +117,7 @@ void CIO::initInt() GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(PORT_COS, &GPIO_InitStruct); +#if defined(ARDUINO_MODE_PINS) // DSTAR pin RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); GPIO_StructInit(&GPIO_InitStruct); @@ -156,6 +157,7 @@ void CIO::initInt() GPIO_InitStruct.GPIO_OType = GPIO_OType_PP; GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_DOWN; GPIO_Init(PORT_P25, &GPIO_InitStruct); +#endif } void CIO::startInt()