tdse-tp4_03-adc_pwm

FIUBA - Electrónica - Taller de Sistemas Embebidos - Trabajo Práctico No 4 - Proyecto No 03
Index Commits Files Refs README
commit 55e529546ac6abf9e062b89e96bc212b6bd8bfee
parent 17e90bba76058dcdadf09bd268a6f795794742c9
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Sat, 25 Oct 2025 15:04:43 -0300

Replace tab for spaces

Diffstat:
Mapp/src/task_adc.c | 2+-
Mapp/src/task_pwm.c | 6+-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/app/src/task_adc.c b/app/src/task_adc.c
@@ -99,7 +99,7 @@ HAL_StatusTypeDef ADC_Poll_Read(uint16_t *value) {
     {
         HAL_ADC_Start(&hadc1);
         HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY);
-        sum += HAL_ADC_GetValue(&hadc1);
+        sum += HAL_ADC_GetValue(&hadc1);
         HAL_ADC_Stop(&hadc1);
     }
 
diff --git a/app/src/task_pwm.c b/app/src/task_pwm.c
@@ -77,13 +77,9 @@ void task_pwm_init(void *parameters)
     LOGGER_LOG("  %s is running - %s\r\n", GET_NAME(task_pwm_init), p_task_pwm);
 }
 
-#define min(a, b) a < b ? a : b
-#define max(a, b) a > b ? a : b
-
-
 void task_pwm_update(void *parameters)
 {
-    float x_norm;
+    float x_norm;
     shared_data_type *data = (shared_data_type *) parameters;
 
     if (data->adc_end_of_conversion)