mirror of https://github.com/g4klx/MMDVM.git
Conditional compile of mode pins for STM32F4.
This commit is contained in:
parent
4a5027b18b
commit
9aa450713a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue