Browse Source

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

Cylindric 10 years ago
parent
commit
8f0cee2a14

+ 5
- 5
Marlin/LiquidCrystalRus.cpp View File

11
   #include "WProgram.h"
11
   #include "WProgram.h"
12
 #endif
12
 #endif
13
 
13
 
14
-// it is a russian alphabet translation
14
+// it is a Russian alphabet translation
15
 // except 0401 --> 0xa2 = ╗, 0451 --> 0xb5
15
 // except 0401 --> 0xa2 = ╗, 0451 --> 0xb5
16
 const PROGMEM uint8_t utf_recode[] = 
16
 const PROGMEM uint8_t utf_recode[] = 
17
        { 0x41,0xa0,0x42,0xa1,0xe0,0x45,0xa3,0xa4,0xa5,0xa6,0x4b,0xa7,0x4d,0x48,0x4f,
17
        { 0x41,0xa0,0x42,0xa1,0xe0,0x45,0xa3,0xa4,0xa5,0xa6,0x4b,0xa7,0x4d,0x48,0x4f,
115
 
115
 
116
   // SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
116
   // SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
117
   // according to datasheet, we need at least 40ms after power rises above 2.7V
117
   // according to datasheet, we need at least 40ms after power rises above 2.7V
118
-  // before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50
118
+  // before sending commands. Arduino can turn on way before 4.5V so we'll wait 50
119
   delayMicroseconds(50000); 
119
   delayMicroseconds(50000); 
120
   // Now we pull both RS and R/W low to begin commands
120
   // Now we pull both RS and R/W low to begin commands
121
   digitalWrite(_rs_pin, LOW);
121
   digitalWrite(_rs_pin, LOW);
126
   
126
   
127
   //put the LCD into 4 bit or 8 bit mode
127
   //put the LCD into 4 bit or 8 bit mode
128
   if (! (_displayfunction & LCD_8BITMODE)) {
128
   if (! (_displayfunction & LCD_8BITMODE)) {
129
-    // this is according to the hitachi HD44780 datasheet
129
+    // this is according to the Hitachi HD44780 datasheet
130
     // figure 24, pg 46
130
     // figure 24, pg 46
131
 
131
 
132
     // we start in 8bit mode, try to set 4 bit mode
132
     // we start in 8bit mode, try to set 4 bit mode
144
     // finally, set to 8-bit interface
144
     // finally, set to 8-bit interface
145
     writeNbits(0x02,4); 
145
     writeNbits(0x02,4); 
146
   } else {
146
   } else {
147
-    // this is according to the hitachi HD44780 datasheet
147
+    // this is according to the Hitachi HD44780 datasheet
148
     // page 45 figure 23
148
     // page 45 figure 23
149
 
149
 
150
     // Send function set command sequence
150
     // Send function set command sequence
308
     }    
308
     }    
309
   } else send(out_char, HIGH);
309
   } else send(out_char, HIGH);
310
 #if defined(ARDUINO) && ARDUINO >= 100
310
 #if defined(ARDUINO) && ARDUINO >= 100
311
-  return 1; // assume sucess 
311
+  return 1; // assume success 
312
 #endif
312
 #endif
313
 }
313
 }
314
 
314
 

+ 2
- 2
Marlin/MarlinSerial.cpp View File

25
 
25
 
26
 #ifndef AT90USB
26
 #ifndef AT90USB
27
 // this next line disables the entire HardwareSerial.cpp, 
27
 // this next line disables the entire HardwareSerial.cpp, 
28
-// this is so I can support Attiny series and any other chip without a uart
28
+// this is so I can support Attiny series and any other chip without a UART
29
 #if defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H)
29
 #if defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H)
30
 
30
 
31
 #if UART_PRESENT(SERIAL_PORT)
31
 #if UART_PRESENT(SERIAL_PORT)
73
   bool useU2X = true;
73
   bool useU2X = true;
74
 
74
 
75
 #if F_CPU == 16000000UL && SERIAL_PORT == 0
75
 #if F_CPU == 16000000UL && SERIAL_PORT == 0
76
-  // hardcoded exception for compatibility with the bootloader shipped
76
+  // hard coded exception for compatibility with the bootloader shipped
77
   // with the Duemilanove and previous boards and the firmware on the 8U2
77
   // with the Duemilanove and previous boards and the firmware on the 8U2
78
   // on the Uno and Mega 2560.
78
   // on the Uno and Mega 2560.
79
   if (baud == 57600) {
79
   if (baud == 57600) {

+ 3
- 3
Marlin/cardreader.cpp View File

22
    file_subcall_ctr=0;
22
    file_subcall_ctr=0;
23
    memset(workDirParents, 0, sizeof(workDirParents));
23
    memset(workDirParents, 0, sizeof(workDirParents));
24
 
24
 
25
-   autostart_stilltocheck=true; //the sd start is delayed, because otherwise the serial cannot answer fast enought to make contact with the hostsoftware.
25
+   autostart_stilltocheck=true; //the SD start is delayed, because otherwise the serial cannot answer fast enough to make contact with the host software.
26
    lastnr=0;
26
    lastnr=0;
27
   //power to SD reader
27
   //power to SD reader
28
   #if SDPOWER > -1
28
   #if SDPOWER > -1
245
 {
245
 {
246
   if(!cardOK)
246
   if(!cardOK)
247
     return;
247
     return;
248
-  if(file.isOpen())  //replaceing current file by new file, or subfile call
248
+  if(file.isOpen())  //replacing current file by new file, or subfile call
249
   {
249
   {
250
     if(!replace_current)
250
     if(!replace_current)
251
     {
251
     {
544
   
544
   
545
   if(store_location)
545
   if(store_location)
546
   {
546
   {
547
-    //future: store printer state, filename and position for continueing a stoped print
547
+    //future: store printer state, filename and position for continuing a stopped print
548
     // so one can unplug the printer and continue printing the next day.
548
     // so one can unplug the printer and continue printing the next day.
549
     
549
     
550
   }
550
   }

+ 4
- 4
Marlin/ultralcd_st7920_u8glib_rrd.h View File

12
 #define ST7920_DAT_PIN  LCD_PINS_ENABLE
12
 #define ST7920_DAT_PIN  LCD_PINS_ENABLE
13
 #define ST7920_CS_PIN   LCD_PINS_RS
13
 #define ST7920_CS_PIN   LCD_PINS_RS
14
 
14
 
15
-//#define PAGE_HEIGHT 8   //128 byte frambuffer
16
-//#define PAGE_HEIGHT 16  //256 byte frambuffer
15
+//#define PAGE_HEIGHT 8   //128 byte framebuffer
16
+//#define PAGE_HEIGHT 16  //256 byte framebuffer
17
 #define PAGE_HEIGHT 32  //512 byte framebuffer
17
 #define PAGE_HEIGHT 32  //512 byte framebuffer
18
 
18
 
19
 #define WIDTH 128
19
 #define WIDTH 128
59
         ST7920_SET_CMD();
59
         ST7920_SET_CMD();
60
         ST7920_WRITE_BYTE(0x08);       //display off, cursor+blink off
60
         ST7920_WRITE_BYTE(0x08);       //display off, cursor+blink off
61
         ST7920_WRITE_BYTE(0x01);       //clear CGRAM ram
61
         ST7920_WRITE_BYTE(0x01);       //clear CGRAM ram
62
-        u8g_Delay(10);                 //delay for cgram clear
63
-        ST7920_WRITE_BYTE(0x3E);       //extended mode + gdram active
62
+        u8g_Delay(10);                 //delay for CGRAM clear
63
+        ST7920_WRITE_BYTE(0x3E);       //extended mode + GDRAM active
64
         for(y=0;y<HEIGHT/2;y++)        //clear GDRAM
64
         for(y=0;y<HEIGHT/2;y++)        //clear GDRAM
65
         {
65
         {
66
           ST7920_WRITE_BYTE(0x80|y);   //set y
66
           ST7920_WRITE_BYTE(0x80|y);   //set y

+ 2
- 2
Marlin/watchdog.h View File

4
 #include "Marlin.h"
4
 #include "Marlin.h"
5
 
5
 
6
 #ifdef USE_WATCHDOG
6
 #ifdef USE_WATCHDOG
7
-  // intialise watch dog with a 1 sec interrupt time
7
+  // initialize watch dog with a 1 sec interrupt time
8
   void watchdog_init();
8
   void watchdog_init();
9
-  // pad the dog/reset watchdog. MUST be called at least every second after the first watchdog_init or avr will go into emergency procedures..
9
+  // pad the dog/reset watchdog. MUST be called at least every second after the first watchdog_init or AVR will go into emergency procedures..
10
   void watchdog_reset();
10
   void watchdog_reset();
11
 #else
11
 #else
12
   //If we do not have a watchdog, then we can have empty functions which are optimized away.
12
   //If we do not have a watchdog, then we can have empty functions which are optimized away.

Loading…
Cancel
Save