178 GPIO_InitTypeDef GPIO_InitStruct;
179 if (htim_pwm->Instance==TIM1) {
190 GPIO_InitStruct.Pin = RED_Pin;
191 GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
192 GPIO_InitStruct.Pull = GPIO_NOPULL;
193 GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
194 GPIO_InitStruct.Alternate = GPIO_AF2_TIM1;
195 HAL_GPIO_Init(RED_GPIO_Port, &GPIO_InitStruct);
201 }
else if (htim_pwm->Instance==TIM3) {
215 GPIO_InitStruct.Pin = ORANGE_Pin |
220 GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
221 GPIO_InitStruct.Pull = GPIO_NOPULL;
222 GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
223 GPIO_InitStruct.Alternate = GPIO_AF0_TIM3;
224 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
struct sd_led wireless_led
Definition: sd_led.c:68
struct sd_led usb_led
Definition: sd_led.c:65
struct sd_led fault_led
Definition: sd_led.c:64
uint32_t chan
Definition: sd_led.h:102
TIM_HandleTypeDef * tim
Definition: sd_led.h:100
struct sd_led app_led
Definition: sd_led.c:67
struct sd_led bluetooth_led
Definition: sd_led.c:66
TIM_OC_InitTypeDef * cfg
Definition: sd_led.h:101