From 1745a7e2b2c6cc9e6bbd1d77b42c7edb03c70a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Wed, 12 Feb 2020 21:19:11 +0100 Subject: [PATCH] Fix coding in all files --- stm-firmware/adc-meas.c | 6 ++++-- stm-firmware/shell.c | 3 ++- stm-firmware/stm-periph/clock-enable-manager.c | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/stm-firmware/adc-meas.c b/stm-firmware/adc-meas.c index 3dff159..6050940 100644 --- a/stm-firmware/adc-meas.c +++ b/stm-firmware/adc-meas.c @@ -201,15 +201,17 @@ return_value: return ret_val; } +/* int adc_pt1000_stream_raw_value_to_memory(float *adc_array, uint32_t length, volatile uint8_t *flag_to_set) { - + return -1; } void adc_pt1000_convert_raw_value_array_to_resistance(float *resistance_dest, float *raw_source, uint32_t count) { } +*/ enum adc_pt1000_error adc_pt1000_check_error() { @@ -246,7 +248,7 @@ static inline __attribute__((optimize("O3"))) void adc_pt1000_filter(float adc_p static inline __attribute__((optimize("O3"))) float adc_pt1000_dma_avg_pre_filter() { - int i; + unsigned int i; uint32_t sum = 0; uint16_t max_val = 0U; uint16_t min_val = 65535U; diff --git a/stm-firmware/shell.c b/stm-firmware/shell.c index 2c914c5..a808b66 100644 --- a/stm-firmware/shell.c +++ b/stm-firmware/shell.c @@ -53,9 +53,10 @@ static shellmatta_retCode_t shell_cmd_digio_set(const shellmatta_handle_t hand const char *arguments, uint32_t length) { + (void)length; + (void)handle; int num = 100; int state; - (void)length; char buff[64]; char *curr_token; diff --git a/stm-firmware/stm-periph/clock-enable-manager.c b/stm-firmware/stm-periph/clock-enable-manager.c index 48012a7..f13d629 100644 --- a/stm-firmware/stm-periph/clock-enable-manager.c +++ b/stm-firmware/stm-periph/clock-enable-manager.c @@ -19,7 +19,7 @@ static struct rcc_enable_count enable_count_list[RCC_ENABLE_MANAGER_COUNT] = {0} #if RCC_ENABLE_MANAGER_STATIC static struct rcc_enable_count *search_enable_entry_in_list(volatile uint32_t *reg_addr, uint8_t bit_pos) { - int i; + unsigned int i; struct rcc_enable_count *ret_element = NULL; struct rcc_enable_count *current_element;