Fix coding in all files

This commit is contained in:
Mario Hüttel 2020-02-12 21:19:11 +01:00
parent 94b59918fc
commit 1745a7e2b2
3 changed files with 7 additions and 4 deletions

View File

@ -201,15 +201,17 @@ return_value:
return ret_val; return ret_val;
} }
/*
int adc_pt1000_stream_raw_value_to_memory(float *adc_array, uint32_t length, volatile uint8_t *flag_to_set) 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) 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() 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() static inline __attribute__((optimize("O3"))) float adc_pt1000_dma_avg_pre_filter()
{ {
int i; unsigned int i;
uint32_t sum = 0; uint32_t sum = 0;
uint16_t max_val = 0U; uint16_t max_val = 0U;
uint16_t min_val = 65535U; uint16_t min_val = 65535U;

View File

@ -53,9 +53,10 @@ static shellmatta_retCode_t shell_cmd_digio_set(const shellmatta_handle_t hand
const char *arguments, const char *arguments,
uint32_t length) uint32_t length)
{ {
(void)length;
(void)handle;
int num = 100; int num = 100;
int state; int state;
(void)length;
char buff[64]; char buff[64];
char *curr_token; char *curr_token;

View File

@ -19,7 +19,7 @@ static struct rcc_enable_count enable_count_list[RCC_ENABLE_MANAGER_COUNT] = {0}
#if RCC_ENABLE_MANAGER_STATIC #if RCC_ENABLE_MANAGER_STATIC
static struct rcc_enable_count *search_enable_entry_in_list(volatile uint32_t *reg_addr, uint8_t bit_pos) 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 *ret_element = NULL;
struct rcc_enable_count *current_element; struct rcc_enable_count *current_element;