This commit is contained in:
tkl
2016-08-09 12:52:38 +02:00
parent 2f13f30b3d
commit 24770a1266
4 changed files with 58 additions and 3 deletions

View File

@@ -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 = {