1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "led.h"
- void LED_GPIO_Config(void)
- {
-
- __HAL_RCC_GPIOF_CLK_ENABLE();
-
- GPIO_InitTypeDef GPIO_InitStruct = {0};
-
- GPIO_InitStruct.Pin = LED_PIN;
-
- GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
-
- GPIO_InitStruct.Pull = GPIO_PULLUP;
-
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
-
- HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
- }
- void NET_STATUS_LED_Config(void)
- {
-
- __HAL_RCC_GPIOF_CLK_ENABLE();
-
- GPIO_InitTypeDef GPIO_InitStruct = {0};
-
- GPIO_InitStruct.Pin = NET_STATUS_LED_PIN;
-
- GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
-
- GPIO_InitStruct.Pull = GPIO_PULLUP;
-
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
-
- HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
- }
- void STATUS_LED_Config(void)
- {
-
- __HAL_RCC_GPIOF_CLK_ENABLE();
-
- GPIO_InitTypeDef GPIO_InitStruct = {0};
-
- GPIO_InitStruct.Pin = STATUS_LED_PIN;
-
- GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
-
- GPIO_InitStruct.Pull = GPIO_PULLUP;
-
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
-
- HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
- }
|