aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/d_output.h
diff options
context:
space:
mode:
authorNicolas Schodet2010-10-09 14:18:52 +0200
committerNicolas Schodet2010-11-01 10:33:33 +0100
commit678b07dfbfe4ad554fae5e228aadb0aeb3c7d04f (patch)
tree58fc8f7110c65dc9b6582102b7fa2fd238227a84 /AT91SAM7S256/Source/d_output.h
parent2c9f8347499be7453b8ce4a6f11eb5b32b94b780 (diff)
replace unused PwnFreq IOMap with RegulationTime
Diffstat (limited to 'AT91SAM7S256/Source/d_output.h')
-rw-r--r--AT91SAM7S256/Source/d_output.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AT91SAM7S256/Source/d_output.h b/AT91SAM7S256/Source/d_output.h
index 6b944a8..1328efd 100644
--- a/AT91SAM7S256/Source/d_output.h
+++ b/AT91SAM7S256/Source/d_output.h
@@ -39,6 +39,8 @@
#endif
+#define REGULATION_TIME 100 // Measured in 1 mS, regulation interval
+
//Constant reffering to RegMode parameter
#define REGSTATE_IDLE 0x00
#define REGSTATE_REGULATED 0x01
@@ -74,6 +76,7 @@ void dOutputResetTachoLimit(UBYTE Motor);
void dOutputResetBlockTachoLimit(UBYTE Motor);
void dOutputResetRotationCaptureCount(UBYTE MotorNr);
void dOutputSetPIDParameters(UBYTE Motor, UBYTE NewRegPParameter, UBYTE NewRegIParameter, UBYTE NewRegDParameter);
+void dOutputSetRegulationTime(UBYTE NewRegulationTime);
void dOutputRegulateMotor(UBYTE MotorNr);
void dOutputCalculateRampUpParameter(UBYTE MotorNr, ULONG NewTachoLimit);