Parcourir la source

Various typo fixes - only in comments, no code changes.

Cylindric il y a 10 ans
Parent
révision
d819c55395
4 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. 6
    6
      Marlin/Servo.h
  2. 1
    1
      Marlin/fastio.h
  3. 2
    2
      Marlin/stepper.h
  4. 1
    1
      Marlin/temperature.h

+ 6
- 6
Marlin/Servo.h Voir le fichier

24
 
24
 
25
   Note that analogWrite of PWM on pins associated with the timer are disabled when the first servo is attached.
25
   Note that analogWrite of PWM on pins associated with the timer are disabled when the first servo is attached.
26
   Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four.
26
   Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four.
27
-  The sequence used to sieze timers is defined in timers.h
27
+  The sequence used to seize timers is defined in timers.h
28
 
28
 
29
   The methods are:
29
   The methods are:
30
 
30
 
50
 /*
50
 /*
51
  * Defines for 16 bit timers used with  Servo library
51
  * Defines for 16 bit timers used with  Servo library
52
  *
52
  *
53
- * If _useTimerX is defined then TimerX is a 16 bit timer on the curent board
53
+ * If _useTimerX is defined then TimerX is a 16 bit timer on the current board
54
  * timer16_Sequence_t enumerates the sequence that the timers should be allocated
54
  * timer16_Sequence_t enumerates the sequence that the timers should be allocated
55
  * _Nbr_16timers indicates how many 16 bit timers are available.
55
  * _Nbr_16timers indicates how many 16 bit timers are available.
56
  *
56
  *
89
 typedef enum { _Nbr_16timers } timer16_Sequence_t ;
89
 typedef enum { _Nbr_16timers } timer16_Sequence_t ;
90
 #endif
90
 #endif
91
 
91
 
92
-#define Servo_VERSION           2      // software version of this library
92
+#define Servo_VERSION           2     // software version of this library
93
 
93
 
94
 #define MIN_PULSE_WIDTH       544     // the shortest pulse sent to a servo
94
 #define MIN_PULSE_WIDTH       544     // the shortest pulse sent to a servo
95
 #define MAX_PULSE_WIDTH      2400     // the longest pulse sent to a servo
95
 #define MAX_PULSE_WIDTH      2400     // the longest pulse sent to a servo
96
 #define DEFAULT_PULSE_WIDTH  1500     // default pulse width when servo is attached
96
 #define DEFAULT_PULSE_WIDTH  1500     // default pulse width when servo is attached
97
-#define REFRESH_INTERVAL    20000     // minumim time to refresh servos in microseconds
97
+#define REFRESH_INTERVAL    20000     // minimum time to refresh servos in microseconds
98
 
98
 
99
 #define SERVOS_PER_TIMER       12     // the maximum number of servos controlled by one timer
99
 #define SERVOS_PER_TIMER       12     // the maximum number of servos controlled by one timer
100
 #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)
100
 #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)
118
   uint8_t attach(int pin);           // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure
118
   uint8_t attach(int pin);           // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure
119
   uint8_t attach(int pin, int min, int max); // as above but also sets min and max values for writes.
119
   uint8_t attach(int pin, int min, int max); // as above but also sets min and max values for writes.
120
   void detach();
120
   void detach();
121
-  void write(int value);             // if value is < 200 its treated as an angle, otherwise as pulse width in microseconds
121
+  void write(int value);             // if value is < 200 it is treated as an angle, otherwise as pulse width in microseconds
122
   void writeMicroseconds(int value); // Write pulse width in microseconds
122
   void writeMicroseconds(int value); // Write pulse width in microseconds
123
   int read();                        // returns current pulse width as an angle between 0 and 180 degrees
123
   int read();                        // returns current pulse width as an angle between 0 and 180 degrees
124
   int readMicroseconds();            // returns current pulse width in microseconds for this servo (was read_us() in first release)
124
   int readMicroseconds();            // returns current pulse width in microseconds for this servo (was read_us() in first release)
125
   bool attached();                   // return true if this servo is attached, otherwise false
125
   bool attached();                   // return true if this servo is attached, otherwise false
126
 #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0)
126
 #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0)
127
-  int pin;                           // store the hw pin of the servo
127
+  int pin;                           // store the hardware pin of the servo
128
 #endif
128
 #endif
129
 private:
129
 private:
130
    uint8_t servoIndex;               // index into the channel data for this servo
130
    uint8_t servoIndex;               // index into the channel data for this servo

+ 1
- 1
Marlin/fastio.h Voir le fichier

1
 /*
1
 /*
2
-  This code contibuted by Triffid_Hunter and modified by Kliment
2
+  This code contributed by Triffid_Hunter and modified by Kliment
3
   why double up on these macros? see http://gcc.gnu.org/onlinedocs/cpp/Stringification.html
3
   why double up on these macros? see http://gcc.gnu.org/onlinedocs/cpp/Stringification.html
4
 */
4
 */
5
 
5
 

+ 2
- 2
Marlin/stepper.h Voir le fichier

71
 void st_wake_up();
71
 void st_wake_up();
72
 
72
 
73
   
73
   
74
-void checkHitEndstops(); //call from somwhere to create an serial error message with the locations the endstops where hit, in case they were triggered
75
-void endstops_hit_on_purpose(); //avoid creation of the message, i.e. after homeing and before a routine call of checkHitEndstops();
74
+void checkHitEndstops(); //call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered
75
+void endstops_hit_on_purpose(); //avoid creation of the message, i.e. after homing and before a routine call of checkHitEndstops();
76
 
76
 
77
 void enable_endstops(bool check); // Enable/disable endstop checking
77
 void enable_endstops(bool check); // Enable/disable endstop checking
78
 
78
 

+ 1
- 1
Marlin/temperature.h Voir le fichier

28
 #endif
28
 #endif
29
 
29
 
30
 // public functions
30
 // public functions
31
-void tp_init();  //initialise the heating
31
+void tp_init();  //initialize the heating
32
 void manage_heater(); //it is critical that this is called periodically.
32
 void manage_heater(); //it is critical that this is called periodically.
33
 
33
 
34
 // low level conversion routines
34
 // low level conversion routines

Chargement…
Annuler
Enregistrer