Parcourir la source

Änderungen im config header

Heinrich Blatt il y a 7 mois
Parent
commit
566a29c1cf
1 fichiers modifiés avec 10 ajouts et 2 suppressions
  1. 10 2
      src/config.h

+ 10 - 2
src/config.h

@@ -5,7 +5,7 @@
 
 // How many slots do we currently support?
 // use 1 for debugging, 4 for production
-#define NUM_SLOTS 4
+#define NUM_SLOTS 1
 
 //Battery Tolerance
 // how much tolerance do we allow if we charge / discharge before we 
@@ -19,12 +19,20 @@
 // production e.g. 320000 (10ms) (Validate that this is really the case!)
 // should be large for debugging, (e.g. )
 // small for production
-#define MAINLOOP_DELAY (32000000*5)
+#define MAINLOOP_DELAY (32000000*2)
 
 // i2c address for acting as target
 // (based on the GPIO 1 integer is added)
 #define I2C_TARGET_BASE_ADDRESS 0x48
 
+// PWM Initalization delay
+// in order to ensure they don't go in exactly the same frequency to
+// avoid EMV peaks
+#define PWM_INITIALIZATION_DELAY 100
+
+// PWM Define max CC period
+#define MAX_PWM_CYCLE 320
+
 //------------
 // Section for configuring debugging outputs
 //------------