From 795d35e2cde242661eb34a683170d78f7ced50d7 Mon Sep 17 00:00:00 2001 From: Roberto Bucher Date: Fri, 28 Oct 2022 10:35:27 +0200 Subject: [PATCH] Files for pysimCoder on nucleo-h743zi2 --- boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c | 2 +- boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c index df3a2452d0..069219c771 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c @@ -67,7 +67,7 @@ * ADC1: {5, 10, 12, 13, 15}; */ -static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = +static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = { 5, 10, 12, 13, 15 }; diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c index 5c8182ae70..7a5119b8c1 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c @@ -50,7 +50,7 @@ int stm32_qencoder_initialize(const char *devpath, int timer) { - int ret = 0; + int ret; /* Initialize a quadrature encoder interface. */