|
@ -79,10 +79,10 @@ void MX_GPIO_Init(void) |
|
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
|
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
/*Configure GPIO pin : PtPin */ |
|
|
/*Configure GPIO pin : PtPin */ |
|
|
GPIO_InitStruct.Pin = KEY1_Pin; |
|
|
|
|
|
|
|
|
GPIO_InitStruct.Pin = nKEY2_Pin; |
|
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
|
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
|
|
GPIO_InitStruct.Pull = GPIO_PULLUP; |
|
|
GPIO_InitStruct.Pull = GPIO_PULLUP; |
|
|
HAL_GPIO_Init(KEY1_GPIO_Port, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
HAL_GPIO_Init(nKEY2_GPIO_Port, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
/*Configure GPIO pins : PBPin PBPin PBPin */ |
|
|
/*Configure GPIO pins : PBPin PBPin PBPin */ |
|
|
GPIO_InitStruct.Pin = DIS_R2_Pin|DIS_G2_Pin|DIS_B2_Pin; |
|
|
GPIO_InitStruct.Pin = DIS_R2_Pin|DIS_G2_Pin|DIS_B2_Pin; |
|
@ -98,10 +98,10 @@ void MX_GPIO_Init(void) |
|
|
HAL_GPIO_Init(GENLOCK_GPIO_Port, &GPIO_InitStruct); |
|
|
HAL_GPIO_Init(GENLOCK_GPIO_Port, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
/*Configure GPIO pin : PtPin */ |
|
|
/*Configure GPIO pin : PtPin */ |
|
|
GPIO_InitStruct.Pin = KEY0_Pin; |
|
|
|
|
|
|
|
|
GPIO_InitStruct.Pin = nKEY1_Pin; |
|
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
|
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
|
|
GPIO_InitStruct.Pull = GPIO_PULLUP; |
|
|
GPIO_InitStruct.Pull = GPIO_PULLUP; |
|
|
HAL_GPIO_Init(KEY0_GPIO_Port, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
HAL_GPIO_Init(nKEY1_GPIO_Port, &GPIO_InitStruct); |
|
|
|
|
|
|
|
|
/*Configure GPIO pin : PtPin */ |
|
|
/*Configure GPIO pin : PtPin */ |
|
|
GPIO_InitStruct.Pin = ETH_RST_Pin; |
|
|
GPIO_InitStruct.Pin = ETH_RST_Pin; |
|
|