Skip to content

Commit 9cac3b2

Browse files
authored
Merge pull request #6149 from bmcdonnell-ionx/typos
Fix typos in the files
2 parents 95fb33f + 4a564ec commit 9cac3b2

File tree

38 files changed

+89
-89
lines changed

38 files changed

+89
-89
lines changed

TESTS/mbedmicro-mbed/static_assert/test_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define THE_ANSWER 42
33

44
// Tests for static asserts in different contexts
5-
// multiple asserts are used to garuntee no conflicts occur in generated labels
5+
// multiple asserts are used to guarantee no conflicts occur in generated labels
66

77
// Test for static asserts in global context
88
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define THE_ANSWER 42
33

44
// Tests for static asserts in different contexts
5-
// multiple asserts are used to garuntee no conflicts occur in generated labels
5+
// multiple asserts are used to guarantee no conflicts occur in generated labels
66

77
// Test for static asserts in global context
88
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

TESTS/netsocket/host_tests/udp_shotgun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def handle(self):
3434
data, sock = self.request
3535
pattern = [ord(d) << 4 for d in data]
3636

37-
# Each byte in request indicates size of packet to recieve
37+
# Each byte in request indicates size of packet to receive
3838
# Each packet size is shifted over by 4 to fit in a byte, which
3939
# avoids any issues with endianess or decoding
4040
for packet in pattern:

TESTS/netsocket/tcp_packet_pressure/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void test_tcp_packet_pressure()
226226
}
227227
}
228228

229-
// Verify recieved data
229+
// Verify received data
230230
while (rx_count < size) {
231231
int rd = sock.recv(buffer, buffer_size);
232232
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class PressureTest
232232
}
233233
}
234234

235-
// Verify recieved data
235+
// Verify received data
236236
while (rx_count < size) {
237237
int rd = sock.recv(buffer, buffer_size);
238238
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

TESTS/netsocket/udp_packet_pressure/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void test_udp_packet_pressure()
222222
}
223223
}
224224

225-
// Prioritize recieving over sending packets to avoid flooding
225+
// Prioritize receiving over sending packets to avoid flooding
226226
// the network while handling erronous packets
227227
while (rx_count < size) {
228228
int rd = sock.recvfrom(NULL, buffer, buffer_size);

TESTS/netsocket/udp_packet_pressure_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class PressureTest
229229
}
230230
}
231231

232-
// Prioritize recieving over sending packets to avoid flooding
232+
// Prioritize receiving over sending packets to avoid flooding
233233
// the network while handling erronous packets
234234
while (rx_count < size) {
235235
int rd = sock.recvfrom(NULL, buffer, buffer_size);

drivers/Ethernet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Ethernet : private NonCopyable<Ethernet> {
9898
*/
9999
int send();
100100

101-
/** Recevies an arrived ethernet packet.
101+
/** Receives an arrived ethernet packet.
102102
*
103103
* Receiving an ethernet packet will drop the last received ethernet packet
104104
* and make a new ethernet packet ready to read.
@@ -110,7 +110,7 @@ class Ethernet : private NonCopyable<Ethernet> {
110110
*/
111111
int receive();
112112

113-
/** Read from an recevied ethernet packet.
113+
/** Read from an received ethernet packet.
114114
*
115115
* After receive returned a number bigger than 0 it is
116116
* possible to read bytes from this packet.
@@ -131,11 +131,11 @@ class Ethernet : private NonCopyable<Ethernet> {
131131
*/
132132
void address(char *mac);
133133

134-
/** Returns if an ethernet link is pressent or not. It takes a wile after Ethernet initializion to show up.
134+
/** Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
135135
*
136136
* @returns
137-
* 0 if no ethernet link is pressent,
138-
* 1 if an ethernet link is pressent.
137+
* 0 if no ethernet link is present,
138+
* 1 if an ethernet link is present.
139139
*
140140
* Example:
141141
* @code

drivers/I2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int I2C::write(int data) {
8181
return ret;
8282
}
8383

84-
// read - Master Reciever Mode
84+
// read - Master Receiver Mode
8585
int I2C::read(int address, char* data, int length, bool repeated) {
8686
lock();
8787
aquire();

drivers/I2C.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ class I2C : private NonCopyable<I2C> {
159159

160160
/** Start non-blocking I2C transfer.
161161
*
162-
* This function locks the deep sleep until any event has occured
162+
* This function locks the deep sleep until any event has occurred
163163
*
164-
* @param address 8/10 bit I2c slave address
164+
* @param address 8/10 bit I2C slave address
165165
* @param tx_buffer The TX buffer with data to be transfered
166166
* @param tx_length The length of TX buffer in bytes
167167
* @param rx_buffer The RX buffer which is used for received data

drivers/RawSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class RawSerial: public SerialBase, private NonCopyable<RawSerial> {
6868
*
6969
* @param c The char to write
7070
*
71-
* @returns The written char or -1 if an error occured
71+
* @returns The written char or -1 if an error occurred
7272
*/
7373
int putc(int c);
7474

drivers/SPI.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void SPI::format(int bits, int mode) {
4949
lock();
5050
_bits = bits;
5151
_mode = mode;
52-
// If changing format while you are the owner than just
53-
// update format, but if owner is changed than even frequency should be
52+
// If changing format while you are the owner then just
53+
// update format, but if owner is changed then even frequency should be
5454
// updated which is done by acquire.
5555
if (_owner == this) {
5656
spi_format(&_spi, _bits, _mode, 0);
@@ -63,8 +63,8 @@ void SPI::format(int bits, int mode) {
6363
void SPI::frequency(int hz) {
6464
lock();
6565
_hz = hz;
66-
// If changing format while you are the owner than just
67-
// update frequency, but if owner is changed than even frequency should be
66+
// If changing format while you are the owner then just
67+
// update frequency, but if owner is changed then even frequency should be
6868
// updated which is done by acquire.
6969
if (_owner == this) {
7070
spi_frequency(&_spi, _hz);
@@ -77,7 +77,7 @@ void SPI::frequency(int hz) {
7777
SPI* SPI::_owner = NULL;
7878
SingletonPtr<PlatformMutex> SPI::_mutex;
7979

80-
// ignore the fact there are multiple physical spis, and always update if it wasnt us last
80+
// ignore the fact there are multiple physical spis, and always update if it wasn't us last
8181
void SPI::aquire() {
8282
lock();
8383
if (_owner != this) {
@@ -252,7 +252,7 @@ void SPI::irq_handler_asynch(void)
252252
}
253253
#if TRANSACTION_QUEUE_SIZE_SPI
254254
if (event & (SPI_EVENT_ALL | SPI_EVENT_INTERNAL_TRANSFER_COMPLETE)) {
255-
// SPI peripheral is free (event happend), dequeue transaction
255+
// SPI peripheral is free (event happened), dequeue transaction
256256
dequeue_transaction();
257257
}
258258
#endif

drivers/SPI.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SPI : private NonCopyable<SPI> {
7979

8080
/** Create a SPI master connected to the specified pins
8181
*
82-
* mosi or miso can be specfied as NC if not used
82+
* mosi or miso can be specified as NC if not used
8383
*
8484
* @param mosi SPI Master Out, Slave In pin
8585
* @param miso SPI Master In, Slave Out pin
@@ -121,7 +121,7 @@ class SPI : private NonCopyable<SPI> {
121121

122122
/** Write to the SPI Slave and obtain the response
123123
*
124-
* The total number of bytes sent and recieved will be the maximum of
124+
* The total number of bytes sent and received will be the maximum of
125125
* tx_length and rx_length. The bytes written will be padded with the
126126
* value 0xff.
127127
*
@@ -156,7 +156,7 @@ class SPI : private NonCopyable<SPI> {
156156

157157
/** Start non-blocking SPI transfer using 8bit buffers.
158158
*
159-
* This function locks the deep sleep until any event has occured
159+
* This function locks the deep sleep until any event has occurred
160160
*
161161
* @param tx_buffer The TX buffer with data to be transfered. If NULL is passed,
162162
* the default SPI value is sent

drivers/SPISlave.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class SPISlave : private NonCopyable<SPISlave> {
5959

6060
/** Create a SPI slave connected to the specified pins
6161
*
62-
* mosi or miso can be specfied as NC if not used
62+
* mosi or miso can be specified as NC if not used
6363
*
6464
* @param mosi SPI Master Out, Slave In pin
6565
* @param miso SPI Master In, Slave Out pin

drivers/SerialBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class SerialBase : private NonCopyable<SerialBase> {
167167

168168
/** Begin asynchronous write using 8bit buffer. The completition invokes registered TX event callback
169169
*
170-
* This function locks the deep sleep until any event has occured
170+
* This function locks the deep sleep until any event has occurred
171171
*
172172
* @param buffer The buffer where received data will be stored
173173
* @param length The buffer length in bytes
@@ -178,7 +178,7 @@ class SerialBase : private NonCopyable<SerialBase> {
178178

179179
/** Begin asynchronous write using 16bit buffer. The completition invokes registered TX event callback
180180
*
181-
* This function locks the deep sleep until any event has occured
181+
* This function locks the deep sleep until any event has occurred
182182
*
183183
* @param buffer The buffer where received data will be stored
184184
* @param length The buffer length in bytes
@@ -193,7 +193,7 @@ class SerialBase : private NonCopyable<SerialBase> {
193193

194194
/** Begin asynchronous reading using 8bit buffer. The completition invokes registred RX event callback.
195195
*
196-
* This function locks the deep sleep until any event has occured
196+
* This function locks the deep sleep until any event has occurred
197197
*
198198
* @param buffer The buffer where received data will be stored
199199
* @param length The buffer length in bytes
@@ -205,7 +205,7 @@ class SerialBase : private NonCopyable<SerialBase> {
205205

206206
/** Begin asynchronous reading using 16bit buffer. The completition invokes registred RX event callback.
207207
*
208-
* This function locks the deep sleep until any event has occured
208+
* This function locks the deep sleep until any event has occurred
209209
*
210210
* @param buffer The buffer where received data will be stored
211211
* @param length The buffer length in bytes

events/Event.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Event<void()> {
172172
* The cancel function is irq safe.
173173
*
174174
* If called while the event queue's dispatch loop is active, the cancel
175-
* function does not garuntee that the event will not execute after it
175+
* function does not guarantee that the event will not execute after it
176176
* returns, as the event may have already begun executing.
177177
*/
178178
void cancel() const {
@@ -590,7 +590,7 @@ class Event<void(A0)> {
590590
* The cancel function is irq safe.
591591
*
592592
* If called while the event queue's dispatch loop is active, the cancel
593-
* function does not garuntee that the event will not execute after it
593+
* function does not guarantee that the event will not execute after it
594594
* returns, as the event may have already begun executing.
595595
*/
596596
void cancel() const {
@@ -1008,7 +1008,7 @@ class Event<void(A0, A1)> {
10081008
* The cancel function is irq safe.
10091009
*
10101010
* If called while the event queue's dispatch loop is active, the cancel
1011-
* function does not garuntee that the event will not execute after it
1011+
* function does not guarantee that the event will not execute after it
10121012
* returns, as the event may have already begun executing.
10131013
*/
10141014
void cancel() const {
@@ -1426,7 +1426,7 @@ class Event<void(A0, A1, A2)> {
14261426
* The cancel function is irq safe.
14271427
*
14281428
* If called while the event queue's dispatch loop is active, the cancel
1429-
* function does not garuntee that the event will not execute after it
1429+
* function does not guarantee that the event will not execute after it
14301430
* returns, as the event may have already begun executing.
14311431
*/
14321432
void cancel() const {
@@ -1844,7 +1844,7 @@ class Event<void(A0, A1, A2, A3)> {
18441844
* The cancel function is irq safe.
18451845
*
18461846
* If called while the event queue's dispatch loop is active, the cancel
1847-
* function does not garuntee that the event will not execute after it
1847+
* function does not guarantee that the event will not execute after it
18481848
* returns, as the event may have already begun executing.
18491849
*/
18501850
void cancel() const {
@@ -2262,7 +2262,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
22622262
* The cancel function is irq safe.
22632263
*
22642264
* If called while the event queue's dispatch loop is active, the cancel
2265-
* function does not garuntee that the event will not execute after it
2265+
* function does not guarantee that the event will not execute after it
22662266
* returns, as the event may have already begun executing.
22672267
*/
22682268
void cancel() const {

events/EventQueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
117117
* The cancel function is irq safe.
118118
*
119119
* If called while the event queue's dispatch loop is active, the cancel
120-
* function does not garuntee that the event will not execute after it
120+
* function does not guarantee that the event will not execute after it
121121
* returns, as the event may have already begun executing.
122122
*
123123
* @param id Unique id of the event

features/filesystem/bd/BlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ class BlockDevice
128128
*/
129129
virtual bd_size_t get_read_size() const = 0;
130130

131-
/** Get the size of a programable block
131+
/** Get the size of a programmable block
132132
*
133-
* @return Size of a programable block in bytes
133+
* @return Size of a programmable block in bytes
134134
* @note Must be a multiple of the read size
135135
*/
136136
virtual bd_size_t get_program_size() const = 0;

features/filesystem/bd/ChainingBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ class ChainingBlockDevice : public BlockDevice
128128
*/
129129
virtual bd_size_t get_read_size() const;
130130

131-
/** Get the size of a programable block
131+
/** Get the size of a programmable block
132132
*
133-
* @return Size of a programable block in bytes
133+
* @return Size of a programmable block in bytes
134134
* @note Must be a multiple of the read size
135135
*/
136136
virtual bd_size_t get_program_size() const;

features/filesystem/bd/HeapBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ class HeapBlockDevice : public BlockDevice
118118
*/
119119
virtual bd_size_t get_read_size() const;
120120

121-
/** Get the size of a programable block
121+
/** Get the size of a programmable block
122122
*
123-
* @return Size of a programable block in bytes
123+
* @return Size of a programmable block in bytes
124124
*/
125125
virtual bd_size_t get_program_size() const;
126126

features/filesystem/bd/MBRBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ class MBRBlockDevice : public BlockDevice
187187
*/
188188
virtual bd_size_t get_read_size() const;
189189

190-
/** Get the size of a programable block
190+
/** Get the size of a programmable block
191191
*
192-
* @return Size of a programable block in bytes
192+
* @return Size of a programmable block in bytes
193193
* @note Must be a multiple of the read size
194194
*/
195195
virtual bd_size_t get_program_size() const;

features/filesystem/bd/ProfilingBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ class ProfilingBlockDevice : public BlockDevice
114114
*/
115115
virtual bd_size_t get_read_size() const;
116116

117-
/** Get the size of a programable block
117+
/** Get the size of a programmable block
118118
*
119-
* @return Size of a programable block in bytes
119+
* @return Size of a programmable block in bytes
120120
* @note Must be a multiple of the read size
121121
*/
122122
virtual bd_size_t get_program_size() const;

features/filesystem/bd/SlicingBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ class SlicingBlockDevice : public BlockDevice
120120
*/
121121
virtual bd_size_t get_read_size() const;
122122

123-
/** Get the size of a programable block
123+
/** Get the size of a programmable block
124124
*
125-
* @return Size of a programable block in bytes
125+
* @return Size of a programmable block in bytes
126126
* @note Must be a multiple of the read size
127127
*/
128128
virtual bd_size_t get_program_size() const;

features/filesystem/littlefs/littlefs/lfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ enum lfs_open_flags {
9494
LFS_F_DIRTY = 0x10000, // File does not match storage
9595
LFS_F_WRITING = 0x20000, // File has been written since last flush
9696
LFS_F_READING = 0x40000, // File has been read since last flush
97-
LFS_F_ERRED = 0x80000, // An error occured during write
97+
LFS_F_ERRED = 0x80000, // An error occurred during write
9898
};
9999

100100
// File seek flags
@@ -465,7 +465,7 @@ int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir);
465465
// Returns a negative error code on failure.
466466
int lfs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
467467

468-
// Prunes any recoverable errors that may have occured in the filesystem
468+
// Prunes any recoverable errors that may have occurred in the filesystem
469469
//
470470
// Not needed to be called by user unless an operation is interrupted
471471
// but the filesystem is still mounted. This is already called on first

0 commit comments

Comments
 (0)