소스 검색

docs: fix spelling errors

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Fathi Boudra 8 년 전
부모
커밋
dc8be495a9

+ 1
- 1
examples/c++/hmtrp.cxx 파일 보기

@@ -135,7 +135,7 @@ int main (int argc, char **argv)
135 135
               if (rv > 0)
136 136
                 cout << "Received: " << radioBuffer << endl;
137 137
               
138
-              if (rv < 0) // some sort of read error occured
138
+              if (rv < 0) // some sort of read error occurred
139 139
                 {
140 140
                   cerr << "Port read error." << endl;
141 141
                   break;

+ 1
- 1
examples/c++/ublox6.cxx 파일 보기

@@ -77,7 +77,7 @@ int main (int argc, char **argv)
77 77
           if (rv > 0)
78 78
             write(1, nmeaBuffer, rv);
79 79
 
80
-          if (rv < 0) // some sort of read error occured
80
+          if (rv < 0) // some sort of read error occurred
81 81
             {
82 82
               cerr << "Port read error." << endl;
83 83
               break;

+ 1
- 1
examples/java/AM2315Example.java 파일 보기

@@ -57,7 +57,7 @@ public class AM2315Example {
57 57
 				Thread.sleep(1000);
58 58
 			} catch (InterruptedException e) {
59 59
 				// TODO Auto-generated catch block
60
-				System.out.println("The following exception occured: "+e.getMessage());
60
+				System.out.println("The following exception occurred: "+e.getMessage());
61 61
 			}
62 62
 		}
63 63
 		//! [Interesting]

+ 1
- 1
examples/java/Ad8232Example.java 파일 보기

@@ -42,7 +42,7 @@ public class Ad8232Example {
42 42
 				Thread.sleep(1);
43 43
 			} catch (InterruptedException e) {
44 44
 				// TODO Auto-generated catch block
45
-				System.out.println("The following error has occured: "+e.getMessage());
45
+				System.out.println("The following error has occurred: "+e.getMessage());
46 46
 			}
47 47
 		}
48 48
 	}

+ 1
- 1
examples/java/Apds9002.java 파일 보기

@@ -38,7 +38,7 @@ public class Apds9002 {
38 38
 				Thread.sleep(1000);
39 39
 			} catch (InterruptedException e) {
40 40
 				// TODO Auto-generated catch block
41
-				System.out.println("The following exception occured: "+e.getMessage());
41
+				System.out.println("The following exception occurred: "+e.getMessage());
42 42
 			}
43 43
 		}
44 44
 		//! [Interesting]

+ 1
- 1
examples/java/Gp2y0aExample.java 파일 보기

@@ -59,7 +59,7 @@ public class Gp2y0aExample {
59 59
 				Thread.sleep(1000);
60 60
 			} catch (InterruptedException e) {
61 61
 				// TODO Auto-generated catch block
62
-				System.out.println("The following exception occured: "+e.getMessage());
62
+				System.out.println("The following exception occurred: "+e.getMessage());
63 63
 			}
64 64
 		}
65 65
 		//! [Interesting]

+ 1
- 1
examples/java/GroveEmg.java 파일 보기

@@ -39,7 +39,7 @@ public class GroveEmg {
39 39
 				Thread.sleep(100);
40 40
 			} catch (InterruptedException e) {
41 41
 				// TODO Auto-generated catch block
42
-				System.out.println("The following exception occured: "+e.getMessage());
42
+				System.out.println("The following exception occurred: "+e.getMessage());
43 43
 			}
44 44
 		}
45 45
 	}

+ 1
- 1
examples/java/GroveGsr.java 파일 보기

@@ -41,7 +41,7 @@ public class GroveGsr {
41 41
 				Thread.sleep(500);
42 42
 			} catch (InterruptedException e) {
43 43
 				// TODO Auto-generated catch block
44
-				System.out.println("The following exception occured: "+e.getMessage());
44
+				System.out.println("The following exception occurred: "+e.getMessage());
45 45
 			}
46 46
 		}
47 47
 		//! [Interesting]

+ 1
- 1
examples/java/GroveO2Example.java 파일 보기

@@ -38,7 +38,7 @@ public class GroveO2Example {
38 38
 				Thread.sleep(100);
39 39
 			} catch (InterruptedException e) {
40 40
 				// TODO Auto-generated catch block
41
-				System.out.println("The following exception has occured: "+e.getMessage());
41
+				System.out.println("The following exception has occurred: "+e.getMessage());
42 42
 			}
43 43
 		}
44 44
 		//! [Interesting]

+ 1
- 1
examples/java/HP20xExample.java 파일 보기

@@ -42,7 +42,7 @@ public class HP20xExample {
42 42
 				Thread.sleep(1000);
43 43
 			} catch (InterruptedException e) {
44 44
 				// TODO Auto-generated catch block
45
-				System.out.println("The following exception occured: "+e.getMessage());
45
+				System.out.println("The following exception occurred: "+e.getMessage());
46 46
 			}
47 47
 		}
48 48
 		//! [Interesting]

+ 1
- 1
examples/java/Th02Example.java 파일 보기

@@ -39,7 +39,7 @@ public class Th02Example {
39 39
 				Thread.sleep(500);
40 40
 			} catch (InterruptedException e) {
41 41
 				// TODO Auto-generated catch block
42
-				System.out.println("The following exception has occured: "+e.getMessage());
42
+				System.out.println("The following exception has occurred: "+e.getMessage());
43 43
 			}
44 44
 		}
45 45
 	}

+ 1
- 1
examples/java/Tsl2561.java 파일 보기

@@ -52,7 +52,7 @@ public class Tsl2561 {
52 52
 				Thread.sleep(1000);
53 53
 			} catch (InterruptedException e) {
54 54
 				// TODO Auto-generated catch block
55
-				System.out.println("The following exception occured: "+e.getMessage());
55
+				System.out.println("The following exception occurred: "+e.getMessage());
56 56
 			}
57 57
 		}
58 58
 		//! [Interesting]

+ 1
- 1
examples/java/WaterLevelSensor.java 파일 보기

@@ -43,7 +43,7 @@ public class WaterLevelSensor {
43 43
 				Thread.sleep(1000);
44 44
 			} catch (InterruptedException e) {
45 45
 				// TODO Auto-generated catch block
46
-				System.out.println("The following exception occured: "+e.getMessage());
46
+				System.out.println("The following exception occurred: "+e.getMessage());
47 47
 			}
48 48
 		}
49 49
 		//! [Interesting]

+ 1
- 1
examples/javascript/hmtrp.js 파일 보기

@@ -128,7 +128,7 @@ function runRadio()
128 128
 			console.log("Received: " + resultStr);
129 129
 		}
130 130
 
131
-		if (rv < 0) // some sort of read error occured
131
+		if (rv < 0) // some sort of read error occurred
132 132
 		{
133 133
 			console.log("Port read error.");
134 134
 			return;

+ 1
- 1
examples/javascript/ublox6.js 파일 보기

@@ -66,7 +66,7 @@ function getGPSInfo()
66 66
 			process.stdout.write(GPSData)
67 67
 		}
68 68
 
69
-		if (rv < 0) // some sort of read error occured
69
+		if (rv < 0) // some sort of read error occurred
70 70
 		{
71 71
 			console.log("Port read error.");
72 72
 			process.exit(0);

+ 1
- 1
examples/python/hmtrp.py 파일 보기

@@ -123,7 +123,7 @@ else:
123 123
 					resultStr += radioBuffer.__getitem__(x)
124 124
 				print "Received:", resultStr
125 125
 
126
-			if (rv < 0): # some sort of read error occured
126
+			if (rv < 0): # some sort of read error occurred
127 127
 				print "Port read error."
128 128
 				sys.exit(0)
129 129
 		myCounter += 1

+ 1
- 1
examples/python/ublox6.py 파일 보기

@@ -73,7 +73,7 @@ def getGPSInfo():
73 73
 				GPSData += nmeaBuffer.__getitem__(x)
74 74
 			sys.stdout.write(GPSData)
75 75
 
76
-		if (rv < 0): # some sort of read error occured
76
+		if (rv < 0): # some sort of read error occurred
77 77
 			print "Port read error."
78 78
 			sys.exit(0)
79 79
 

+ 1
- 1
src/adxrs610/adxrs610.h 파일 보기

@@ -113,7 +113,7 @@ namespace upm {
113 113
     /**
114 114
      * Set the zero point.  This is the point measured and averaged
115 115
      * when the sensor is not moving.  It is set at construction time
116
-     * (averaged over a number of samples), but can be overriden here.
116
+     * (averaged over a number of samples), but can be overridden here.
117 117
      *
118 118
      * @param zeroPoint The averaged zero point of the sensor at rest
119 119
      */

+ 1
- 1
src/apa102/apa102.h 파일 보기

@@ -62,7 +62,7 @@ class APA102
62 62
      *
63 63
      * @param ledCount  Number of APA102 leds in the strip
64 64
      * @param spiBus    SPI Bus number
65
-     * @param batchMode (optional) Immediatly write to SPI (false, default) or wait for a pushState
65
+     * @param batchMode (optional) Immediately write to SPI (false, default) or wait for a pushState
66 66
      * call (true)
67 67
      * @param csn       (optional) Chip Select Pin
68 68
      */

+ 2
- 2
src/h3lis331dl/h3lis331dl.h 파일 보기

@@ -522,7 +522,7 @@ namespace upm {
522 522
     /**
523 523
      * Sets up the interrupt 1 threshold register
524 524
      *
525
-     * @param val Threshhold to set
525
+     * @param val Threshold to set
526 526
      * @return True if successful
527 527
      */
528 528
     bool setInterrupt1Threshold(uint8_t val);
@@ -530,7 +530,7 @@ namespace upm {
530 530
     /**
531 531
      * Sets up the interrupt 2 threshold register
532 532
      *
533
-     * @param val Threshhold to set
533
+     * @param val Threshold to set
534 534
      * @return True if successful
535 535
      */
536 536
     bool setInterrupt2Threshold(uint8_t val);

+ 1
- 1
src/mpu9150/mpu60x0.h 파일 보기

@@ -851,7 +851,7 @@ namespace upm {
851 851
 
852 852
     /**
853 853
      * enable I2C Bypass.  Enabling this feature allows devices on the
854
-     * MPU60X0 auxillary I2C bus to be visible on the MCU's I2C bus.
854
+     * MPU60X0 auxiliary I2C bus to be visible on the MCU's I2C bus.
855 855
      *
856 856
      * @param enable true to I2C bypass
857 857
      * @return true if successful, false otherwise

+ 3
- 3
src/nlgpio16/nlgpio16.h 파일 보기

@@ -177,8 +177,8 @@ namespace upm {
177 177
 
178 178
     /**
179 179
      * Set the driection mode (input or output) for all gpios enabled
180
-     * by gpioSetIOMask().  A 0 in a given bit postion (LSB = gpio0)
181
-     * configures the gpio as an ouput, and a 1 bit configures the
180
+     * by gpioSetIOMask().  A 0 in a given bit position (LSB = gpio0)
181
+     * configures the gpio as an output, and a 1 bit configures the
182 182
      * gpio as an input.  Only the gpios enabled by gpioSetMask() are
183 183
      * affected by this call.
184 184
      *
@@ -211,7 +211,7 @@ namespace upm {
211 211
 
212 212
     /**
213 213
      * Read the raw analog input value present at the given gpio and
214
-     * return the coresponding voltage value at the pin.  The gpio is
214
+     * return the corresponding voltage value at the pin.  The gpio is
215 215
      * switched to analog input mode by this call, regardless of any
216 216
      * previous mode.  The returned value will be a number between
217 217
      * 0.0-3.3, depending on the voltage present at the pin.  Only the

+ 3
- 3
src/nrf8001/hal_aci_tl.cpp 파일 보기

@@ -371,17 +371,17 @@ void hal_aci_tl_init(aci_pins_t *a_pins, bool debug)
371 371
 
372 372
     error = mraa_gpio_dir (a_pins->m_rdy_ctx, MRAA_GPIO_IN);
373 373
     if (error != MRAA_SUCCESS) {
374
-        printf ("[ERROR] GPIO failed to initilize \n");
374
+        printf ("[ERROR] GPIO failed to initialize \n");
375 375
     }
376 376
 
377 377
     error = mraa_gpio_dir (a_pins->m_req_ctx, MRAA_GPIO_OUT);
378 378
     if (error != MRAA_SUCCESS) {
379
-        printf ("[ERROR] GPIO failed to initilize \n");
379
+        printf ("[ERROR] GPIO failed to initialize \n");
380 380
     }
381 381
 
382 382
     error = mraa_gpio_dir (a_pins->m_rst_ctx, MRAA_GPIO_OUT);
383 383
     if (error != MRAA_SUCCESS) {
384
-        printf ("[ERROR] GPIO failed to initilize \n");
384
+        printf ("[ERROR] GPIO failed to initialize \n");
385 385
     }
386 386
 
387 387
     if (UNUSED != a_pins->active_pin) {

+ 1
- 1
src/ozw/ozw.h 파일 보기

@@ -398,7 +398,7 @@ namespace upm {
398 398
      * library.  Most modern devices are never polled, rather they are
399 399
      * configured to report changing values to the controller on their
400 400
      * own at device specific intervals or when appropriate events
401
-     * (depending the device) have occured.
401
+     * (depending the device) have occurred.
402 402
      *
403 403
      * @param nodeId The node ID
404 404
      * @param index The value index (see dumpNodes()) of the value to query.

+ 2
- 2
src/pn532/pn532.cxx 파일 보기

@@ -192,8 +192,8 @@ uint32_t PN532::getFirmwareVersion()
192 192
   @param  cmdlen    The size of the command in bytes 
193 193
   @param  timeout   timeout before giving up
194 194
     
195
-  @returns  1 if everything is OK, 0 if timeout occured before an
196
-  ACK was recieved
195
+  @returns  1 if everything is OK, 0 if timeout occurred before an
196
+  ACK was received
197 197
 */
198 198
 /**************************************************************************/
199 199
 // default timeout of one second

+ 2
- 2
src/pn532/pn532.h 파일 보기

@@ -232,8 +232,8 @@ namespace upm {
232 232
      * @param  cmdlen    the size of the command in bytes 
233 233
      * @param  timeout   timeout before giving up (in ms)
234 234
      * 
235
-     * @return true if everything is OK, false if timeout occured
236
-     * before an ACK was recieved
235
+     * @return true if everything is OK, false if timeout occurred
236
+     * before an ACK was received
237 237
      */
238 238
     bool sendCommandCheckAck(uint8_t *cmd, uint8_t cmdlen, 
239 239
                              uint16_t timeout=1000);

+ 1
- 1
src/si1132/si1132.cxx 파일 보기

@@ -189,7 +189,7 @@ mraa::Result SI1132::runCommand(uint8_t command)
189 189
     }
190 190
     if (response == 0) {
191 191
         status = mraa::ERROR_UNSPECIFIED;
192
-        fprintf(stderr, "Comand %d failed\n", command);
192
+        fprintf(stderr, "Command %d failed\n", command);
193 193
     }
194 194
     return status;
195 195
 }

+ 2
- 2
src/smartdrive/smartdrive.cxx 파일 보기

@@ -397,7 +397,7 @@ SmartDrive::GetMotorStatus(int motor_id) {
397 397
     if (motor_id == SmartDrive_Motor_ID_2)
398 398
         status = readByte(SmartDrive_STATUS_M1);
399 399
     if (motor_id == SmartDrive_Motor_ID_BOTH) {
400
-        std::cout << "Please specifiy which motor's status you want to fetch !" << std::endl;
400
+        std::cout << "Please specify which motor's status you want to fetch !" << std::endl;
401 401
     }
402 402
     return status;
403 403
 }
@@ -425,6 +425,6 @@ SmartDrive::PrintMotorStatus(int motor_id) {
425 425
     std::cout << "Motor " << motor_id+1 << " is " <<  ((is_stalled == 0) ? "NOT" : "") << " stalled" << std::endl;
426 426
 
427 427
     } else {
428
-        std::cout << "Please specifiy which motor's status you want to fetch !" << std::endl;
428
+        std::cout << "Please specify which motor's status you want to fetch !" << std::endl;
429 429
     }
430 430
 }

+ 1
- 1
src/sx1276/sx1276.h 파일 보기

@@ -1740,7 +1740,7 @@ namespace upm {
1740 1740
      *                          FSK : N/A ( set to 0 ) 
1741 1741
      *                          LoRa: timeout in symbols
1742 1742
      * @param fixLen Fixed length packets [false: variable, true: fixed]
1743
-     * @param payloadLen Sets payload length when fixed lenght is used
1743
+     * @param payloadLen Sets payload length when fixed length is used
1744 1744
      * @param crcOn Enables/Disables the CRC [false: OFF, true: ON]
1745 1745
      * @param FreqHopOn Enables disables the intra-packet frequency hopping
1746 1746
      *                          FSK : N/A ( set to 0 )