done
This commit is contained in:
@@ -59,7 +59,7 @@ static const TIM_OCInitTypeDef t4_output_compare_cfg = {
|
||||
.TIM_OCMode = TIM_OCMode_PWM1,
|
||||
.TIM_OCPolarity = TIM_OCPolarity_High,
|
||||
.TIM_OutputState = TIM_OutputState_Enable,
|
||||
.TIM_Pulse = 0 // Initiale Pulsweite in Millisekunden
|
||||
.TIM_Pulse = 0,
|
||||
};
|
||||
|
||||
static const GPIO_InitTypeDef port_cfg = {
|
||||
@@ -85,6 +85,15 @@ static const struct pwm pwm_ch4 = {
|
||||
.fp = &stm32f4_pwm_fp,
|
||||
};
|
||||
|
||||
#ifdef TEST_APP
|
||||
static const struct driver pwm_4 = {
|
||||
#else
|
||||
const struct driver pwm_4 = {
|
||||
#endif
|
||||
DRIVER_TYPE_PWM,
|
||||
&pwm_ch4,
|
||||
};
|
||||
|
||||
// UART 1
|
||||
static char console_linear_buffer[80];
|
||||
static struct ringbuffer console_buffer = {
|
||||
|
Reference in New Issue
Block a user