aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx/DAC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F3xx/DAC/main.c')
-rw-r--r--testhal/STM32/STM32F3xx/DAC/main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/testhal/STM32/STM32F3xx/DAC/main.c b/testhal/STM32/STM32F3xx/DAC/main.c
index ca2410a93..00b8afc5d 100644
--- a/testhal/STM32/STM32F3xx/DAC/main.c
+++ b/testhal/STM32/STM32F3xx/DAC/main.c
@@ -88,25 +88,25 @@ static void error_cb1(DACDriver *dacp, dacerror_t err) {
}
static const DACConfig dac1cfg1 = {
- init: 2047U,
- datamode: DAC_DHRM_12BIT_RIGHT
+ .init = 2047U,
+ .datamode = DAC_DHRM_12BIT_RIGHT
};
static const DACConversionGroup dacgrpcfg1 = {
- num_channels: 1U,
- end_cb: end_cb1,
- error_cb: error_cb1,
- trigger: DAC_TRG(0)
+ .num_channels = 1U,
+ .end_cb = end_cb1,
+ .error_cb = error_cb1,
+ .trigger = DAC_TRG(0)
};
/*
* GPT6 configuration.
*/
static const GPTConfig gpt6cfg1 = {
- frequency: 1000000U,
- callback: NULL,
- cr2: TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */
- dier: 0U
+ .frequency = 1000000U,
+ .callback = NULL,
+ .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */
+ .dier = 0U
};
/*