Explorar el Código

GPIO Error LED Blinking adjusted

namrota ghosh hace 6 meses
padre
commit
d24d56a0cf
Se han modificado 1 ficheros con 18 adiciones y 0 borrados
  1. 18 0
      src/adc_peripheral/adc_singleConversion.h

+ 18 - 0
src/adc_peripheral/adc_singleConversion.h

@@ -0,0 +1,18 @@
+#ifndef ADC_SINGLECONVERSION_H_
+#define ADC_SINGLECONVERSION_H_
+
+
+typedef enum{
+    LED_STATE_NORMAL,
+    LED_STATE_SOV_WARNING,
+    LED_STATE_HOV_ERROR
+}LedState;
+
+#define LED_PERIOD_NORMAL_MS     0  
+#define LED_PERIOD_SOV_MS        10000    
+#define LED_PERIOD_HOV_MS        500
+#define TICKS_PER_MS     32000
+
+void processPWMController();
+
+#endif