Merge pull request #6149 from bmcdonnell-ionx/typos

Fix typos in the files
pull/6211/merge
Cruz Monrreal 2018-03-15 10:53:03 -05:00 committed by GitHub
commit 9cac3b2f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 89 additions and 89 deletions

View File

@ -2,7 +2,7 @@
#define THE_ANSWER 42
// Tests for static asserts in different contexts
// multiple asserts are used to garuntee no conflicts occur in generated labels
// multiple asserts are used to guarantee no conflicts occur in generated labels
// Test for static asserts in global context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

View File

@ -2,7 +2,7 @@
#define THE_ANSWER 42
// Tests for static asserts in different contexts
// multiple asserts are used to garuntee no conflicts occur in generated labels
// multiple asserts are used to guarantee no conflicts occur in generated labels
// Test for static asserts in global context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

View File

@ -34,7 +34,7 @@ class UDPEchoClientHandler(BaseRequestHandler):
data, sock = self.request
pattern = [ord(d) << 4 for d in data]
# Each byte in request indicates size of packet to recieve
# Each byte in request indicates size of packet to receive
# Each packet size is shifted over by 4 to fit in a byte, which
# avoids any issues with endianess or decoding
for packet in pattern:

View File

@ -226,7 +226,7 @@ void test_tcp_packet_pressure()
}
}
// Verify recieved data
// Verify received data
while (rx_count < size) {
int rd = sock.recv(buffer, buffer_size);
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

View File

@ -232,7 +232,7 @@ public:
}
}
// Verify recieved data
// Verify received data
while (rx_count < size) {
int rd = sock.recv(buffer, buffer_size);
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

View File

@ -222,7 +222,7 @@ void test_udp_packet_pressure()
}
}
// Prioritize recieving over sending packets to avoid flooding
// Prioritize receiving over sending packets to avoid flooding
// the network while handling erronous packets
while (rx_count < size) {
int rd = sock.recvfrom(NULL, buffer, buffer_size);

View File

@ -229,7 +229,7 @@ public:
}
}
// Prioritize recieving over sending packets to avoid flooding
// Prioritize receiving over sending packets to avoid flooding
// the network while handling erronous packets
while (rx_count < size) {
int rd = sock.recvfrom(NULL, buffer, buffer_size);

View File

@ -98,7 +98,7 @@ public:
*/
int send();
/** Recevies an arrived ethernet packet.
/** Receives an arrived ethernet packet.
*
* Receiving an ethernet packet will drop the last received ethernet packet
* and make a new ethernet packet ready to read.
@ -110,7 +110,7 @@ public:
*/
int receive();
/** Read from an recevied ethernet packet.
/** Read from an received ethernet packet.
*
* After receive returned a number bigger than 0 it is
* possible to read bytes from this packet.
@ -131,11 +131,11 @@ public:
*/
void address(char *mac);
/** Returns if an ethernet link is pressent or not. It takes a wile after Ethernet initializion to show up.
/** Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
*
* @returns
* 0 if no ethernet link is pressent,
* 1 if an ethernet link is pressent.
* 0 if no ethernet link is present,
* 1 if an ethernet link is present.
*
* Example:
* @code

View File

@ -81,7 +81,7 @@ int I2C::write(int data) {
return ret;
}
// read - Master Reciever Mode
// read - Master Receiver Mode
int I2C::read(int address, char* data, int length, bool repeated) {
lock();
aquire();

View File

@ -159,9 +159,9 @@ public:
/** Start non-blocking I2C transfer.
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param address 8/10 bit I2c slave address
* @param address 8/10 bit I2C slave address
* @param tx_buffer The TX buffer with data to be transfered
* @param tx_length The length of TX buffer in bytes
* @param rx_buffer The RX buffer which is used for received data

View File

@ -68,7 +68,7 @@ public:
*
* @param c The char to write
*
* @returns The written char or -1 if an error occured
* @returns The written char or -1 if an error occurred
*/
int putc(int c);

View File

@ -49,8 +49,8 @@ void SPI::format(int bits, int mode) {
lock();
_bits = bits;
_mode = mode;
// If changing format while you are the owner than just
// update format, but if owner is changed than even frequency should be
// If changing format while you are the owner then just
// update format, but if owner is changed then even frequency should be
// updated which is done by acquire.
if (_owner == this) {
spi_format(&_spi, _bits, _mode, 0);
@ -63,8 +63,8 @@ void SPI::format(int bits, int mode) {
void SPI::frequency(int hz) {
lock();
_hz = hz;
// If changing format while you are the owner than just
// update frequency, but if owner is changed than even frequency should be
// If changing format while you are the owner then just
// update frequency, but if owner is changed then even frequency should be
// updated which is done by acquire.
if (_owner == this) {
spi_frequency(&_spi, _hz);
@ -77,7 +77,7 @@ void SPI::frequency(int hz) {
SPI* SPI::_owner = NULL;
SingletonPtr<PlatformMutex> SPI::_mutex;
// ignore the fact there are multiple physical spis, and always update if it wasnt us last
// ignore the fact there are multiple physical spis, and always update if it wasn't us last
void SPI::aquire() {
lock();
if (_owner != this) {
@ -252,7 +252,7 @@ void SPI::irq_handler_asynch(void)
}
#if TRANSACTION_QUEUE_SIZE_SPI
if (event & (SPI_EVENT_ALL | SPI_EVENT_INTERNAL_TRANSFER_COMPLETE)) {
// SPI peripheral is free (event happend), dequeue transaction
// SPI peripheral is free (event happened), dequeue transaction
dequeue_transaction();
}
#endif

View File

@ -79,7 +79,7 @@ public:
/** Create a SPI master connected to the specified pins
*
* mosi or miso can be specfied as NC if not used
* mosi or miso can be specified as NC if not used
*
* @param mosi SPI Master Out, Slave In pin
* @param miso SPI Master In, Slave Out pin
@ -121,7 +121,7 @@ public:
/** Write to the SPI Slave and obtain the response
*
* The total number of bytes sent and recieved will be the maximum of
* The total number of bytes sent and received will be the maximum of
* tx_length and rx_length. The bytes written will be padded with the
* value 0xff.
*
@ -156,7 +156,7 @@ public:
/** Start non-blocking SPI transfer using 8bit buffers.
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param tx_buffer The TX buffer with data to be transfered. If NULL is passed,
* the default SPI value is sent

View File

@ -59,7 +59,7 @@ public:
/** Create a SPI slave connected to the specified pins
*
* mosi or miso can be specfied as NC if not used
* mosi or miso can be specified as NC if not used
*
* @param mosi SPI Master Out, Slave In pin
* @param miso SPI Master In, Slave Out pin

View File

@ -167,7 +167,7 @@ public:
/** Begin asynchronous write using 8bit buffer. The completition invokes registered TX event callback
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param buffer The buffer where received data will be stored
* @param length The buffer length in bytes
@ -178,7 +178,7 @@ public:
/** Begin asynchronous write using 16bit buffer. The completition invokes registered TX event callback
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param buffer The buffer where received data will be stored
* @param length The buffer length in bytes
@ -193,7 +193,7 @@ public:
/** Begin asynchronous reading using 8bit buffer. The completition invokes registred RX event callback.
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param buffer The buffer where received data will be stored
* @param length The buffer length in bytes
@ -205,7 +205,7 @@ public:
/** Begin asynchronous reading using 16bit buffer. The completition invokes registred RX event callback.
*
* This function locks the deep sleep until any event has occured
* This function locks the deep sleep until any event has occurred
*
* @param buffer The buffer where received data will be stored
* @param length The buffer length in bytes

View File

@ -172,7 +172,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {
@ -590,7 +590,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {
@ -1008,7 +1008,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {
@ -1426,7 +1426,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {
@ -1844,7 +1844,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {
@ -2262,7 +2262,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*/
void cancel() const {

View File

@ -117,7 +117,7 @@ public:
* The cancel function is irq safe.
*
* If called while the event queue's dispatch loop is active, the cancel
* function does not garuntee that the event will not execute after it
* function does not guarantee that the event will not execute after it
* returns, as the event may have already begun executing.
*
* @param id Unique id of the event

View File

@ -128,9 +128,9 @@ public:
*/
virtual bd_size_t get_read_size() const = 0;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
* @note Must be a multiple of the read size
*/
virtual bd_size_t get_program_size() const = 0;

View File

@ -128,9 +128,9 @@ public:
*/
virtual bd_size_t get_read_size() const;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
* @note Must be a multiple of the read size
*/
virtual bd_size_t get_program_size() const;

View File

@ -118,9 +118,9 @@ public:
*/
virtual bd_size_t get_read_size() const;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
*/
virtual bd_size_t get_program_size() const;

View File

@ -187,9 +187,9 @@ public:
*/
virtual bd_size_t get_read_size() const;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
* @note Must be a multiple of the read size
*/
virtual bd_size_t get_program_size() const;

View File

@ -114,9 +114,9 @@ public:
*/
virtual bd_size_t get_read_size() const;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
* @note Must be a multiple of the read size
*/
virtual bd_size_t get_program_size() const;

View File

@ -120,9 +120,9 @@ public:
*/
virtual bd_size_t get_read_size() const;
/** Get the size of a programable block
/** Get the size of a programmable block
*
* @return Size of a programable block in bytes
* @return Size of a programmable block in bytes
* @note Must be a multiple of the read size
*/
virtual bd_size_t get_program_size() const;

View File

@ -94,7 +94,7 @@ enum lfs_open_flags {
LFS_F_DIRTY = 0x10000, // File does not match storage
LFS_F_WRITING = 0x20000, // File has been written since last flush
LFS_F_READING = 0x40000, // File has been read since last flush
LFS_F_ERRED = 0x80000, // An error occured during write
LFS_F_ERRED = 0x80000, // An error occurred during write
};
// File seek flags
@ -465,7 +465,7 @@ int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir);
// Returns a negative error code on failure.
int lfs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
// Prunes any recoverable errors that may have occured in the filesystem
// Prunes any recoverable errors that may have occurred in the filesystem
//
// Not needed to be called by user unless an operation is interrupted
// but the filesystem is still mounted. This is already called on first

View File

@ -51,21 +51,21 @@ public:
/** Get the local IP address
*
* @return Null-terminated representation of the local IP address
* or null if no IP address has been recieved
* or null if no IP address has been received
*/
virtual const char *get_ip_address();
/** Get the local network mask
*
* @return Null-terminated representation of the local network mask
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_netmask();
/** Get the local gateway
*
* @return Null-terminated representation of the local gateway
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_gateway();

View File

@ -130,7 +130,7 @@ protected:
/** Bind a specific address to a socket
*
* Binding a socket specifies the address and port on which to recieve
* Binding a socket specifies the address and port on which to receive
* data. If the IP address is zeroed, only the port is bound.
*
* @param handle Socket handle

View File

@ -78,7 +78,7 @@ public:
/** Bind a specific address to a socket
*
* Binding a socket specifies the address and port on which to recieve
* Binding a socket specifies the address and port on which to receive
* data.
*
* @param port Local port to bind
@ -88,7 +88,7 @@ public:
/** Bind a specific address to a socket
*
* Binding a socket specifies the address and port on which to recieve
* Binding a socket specifies the address and port on which to receive
* data. If the IP address is zeroed, only the port is bound.
*
* @param address Null-terminated local address to bind
@ -99,7 +99,7 @@ public:
/** Bind a specific address to a socket
*
* Binding a socket specifies the address and port on which to recieve
* Binding a socket specifies the address and port on which to receive
* data. If the IP address is zeroed, only the port is bound.
*
* @param address Local address to bind

View File

@ -211,21 +211,21 @@ public:
/** Get the local IP address
*
* @return Null-terminated representation of the local IP address
* or null if no IP address has been recieved
* or null if no IP address has been received
*/
virtual const char *get_ip_address();
/** Get the local network mask
*
* @return Null-terminated representation of the local network mask
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_netmask();
/** Get the local gateways
*
* @return Null-terminated representation of the local gateway
* or null if no network mask has been recieved
* or null if no network mask has been received
*/
virtual const char *get_gateway();

View File

@ -403,7 +403,7 @@ typedef struct nsapi_stack_api
/** Bind a specific address to a socket
*
* Binding a socket specifies the address and port on which to recieve
* Binding a socket specifies the address and port on which to receive
* data. If the IP address is zeroed, only the port is bound.
*
* @param stack Stack handle

View File

@ -936,7 +936,7 @@ The following provides general notes on the handling of errors:
- Supported backends may include non-volatile storage (flash) and SRAM.
- For example. if a non-volatile storage (flash) backend is supported, then the flushing of data to the NV store must be atomic.
This may require that flushing of data to flash is commited using an atomic write operation e.g. of a CRC32 value for the
commit data. If power loss occured during the atomic write then the CRC32 would be invalid, the previously written data would
commit data. If power loss occurred during the atomic write then the CRC32 would be invalid, the previously written data would
not be valid, and the system would have to revert to a previous version of the data that has successfully commited the correct CRC32
value.
@ -1080,7 +1080,7 @@ split the writing of the value into M writes, where N/M is smaller than availabl
In the case the the Write() call fails with return code `ARM_CFSTORE_DRIVER_ERROR_OUT_OF_MEMORY`
then the client may retry the write transaction with a smaller length (less bytes).
Further, a client of the Write() function should alway check the returned value of the
Further, a client of the Write() function should always check the returned value of the
len argment as this records the actual number of bytes written. CFSTORE may be able to
write a number of bytes less that the total number in the data buffer supplied by the
client. The unwritten bytes should be supplied to a second call to Write().

View File

@ -1555,7 +1555,7 @@ static int32_t cfstore_flash_map_error(int32_t flash_journal_status_code)
* In flash journal async mode, when:
* - a FlashJournal_xxx() function has been invoked, and
* - before the async completion has been received and processed
* the application context code should alway co-ordinate access to
* the application context code should always coordinate access to
* context variables modified by interrupt and application context
* by use of the critical_section_xxx.
*/
@ -3497,7 +3497,7 @@ static int32_t cfstore_create(const char* key_name, ARM_CFSTORE_SIZE value_len,
ret = cfstore_recreate(key_name, value_len, hkey, &hkvt);
goto out1;
}
/* not a valid hkvt implying the key_name wasnt found */
/* not a valid hkvt implying the key_name wasn't found */
/* create new key */
ret = cfstore_validate_key_desc(kdesc);

View File

@ -40,7 +40,7 @@ int ethernet_write(const char *data, int size);
// send ethernet write buffer, returning the packet size sent
int ethernet_send(void);
// recieve from ethernet buffer, returning packet size, or 0 if no packet
// receive from ethernet buffer, returning packet size, or 0 if no packet
int ethernet_receive(void);
// read size bytes in to data, return actual num bytes read (0..size)

View File

@ -119,7 +119,7 @@ int spi_master_write(spi_t *obj, int value);
/** Write a block out in master mode and receive a value
*
* The total number of bytes sent and recieved will be the maximum of
* The total number of bytes sent and received will be the maximum of
* tx_length and rx_length. The bytes written will be padded with the
* value 0xff.
*

View File

@ -158,7 +158,7 @@ int ATCmdParser::vscanf(const char *format, va_list args)
if (j+1 >= _buffer_size - offset) {
return false;
}
// Recieve next character
// Receive next character
int c = getc();
if (c < 0) {
return -1;

View File

@ -565,7 +565,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)();
@ -1140,7 +1140,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)(A0);
@ -1716,7 +1716,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)(A0, A1);
@ -2293,7 +2293,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)(A0, A1, A2);
@ -2871,7 +2871,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)(A0, A1, A2, A3);
@ -3450,7 +3450,7 @@ public:
private:
// Stored as pointer to function and pointer to optional object
// Function pointer is stored as union of possible function types
// to garuntee proper size and alignment
// to guarantee proper size and alignment
struct _class;
union {
void (*_staticfunc)(A0, A1, A2, A3, A4);

View File

@ -25,11 +25,11 @@ namespace mbed {
/**
* Inheriting from this class autogeneration of copy construction and copy
* assignement operations.
* assignment operations.
*
* Classes which are not value type should inherit privately from this class
* to avoid generation of invalid copy constructor or copy assignement operator
* which can lead to unoticeable programming errors.
* to avoid generation of invalid copy constructor or copy assignment operator
* which can lead to unnoticeable programming errors.
*
* As an example consider the following signature:
*
@ -50,7 +50,7 @@ namespace mbed {
* @endcode
*
* There is a bug in this function, it returns a temporary value which will be
* byte copied into foo then destroyed. Unfortunately, internaly the Foo class
* byte copied into foo then destroyed. Unfortunately, internally the Foo class
* manage a pointer to a Resource object. This pointer will be released when the
* temporary is destroyed and foo will manage a pointer to an already released
* Resource.
@ -71,9 +71,9 @@ namespace mbed {
* Foo* m = make_foo();
* @endcode
*
* - Copy constructor and copy assignement operator has to be made private
* - Copy constructor and copy assignment operator has to be made private
* in the Foo class. It prevents unwanted copy of Foo objects. This can be
* done by declaring copy constructor and copy assignement in the private
* done by declaring copy constructor and copy assignment in the private
* section of the Foo class.
*
* @code
@ -92,7 +92,7 @@ namespace mbed {
*
* Another solution is to inherit privately from the NonCopyable class.
* It reduces the boiler plate needed to avoid copy operations but more
* importantly it clarifies the programer intent and the object semantic.
* importantly it clarifies the programmer intent and the object semantic.
*
* class Foo : private NonCopyable<Foo> {
* public:
@ -121,7 +121,7 @@ namespace mbed {
* };
*
* // empty base optimization cannot be applied here because A from C and A from
* // B shall have a different address. In that case, with the alignement
* // B shall have a different address. In that case, with the alignment
* // sizeof(C) == 2* sizeof(int)
* @endcode
*
@ -150,11 +150,11 @@ template<typename T>
class NonCopyable {
protected:
/**
* Disalow construction of NonCopyable objects from outside of its hierarchy.
* Disallow construction of NonCopyable objects from outside of its hierarchy.
*/
NonCopyable() { }
/**
* Disalow destruction of NonCopyable objects from outside of its hierarchy.
* Disallow destruction of NonCopyable objects from outside of its hierarchy.
*/
~NonCopyable() { }
@ -199,7 +199,7 @@ private:
NonCopyable(const NonCopyable&);
/**
* Declare copy assignement operator as private, any attempt to copy assign
* Declare copy assignment operator as private, any attempt to copy assign
* a NonCopyable will fail at compile time.
*/
NonCopyable& operator=(const NonCopyable&);

View File

@ -422,7 +422,7 @@ typedef struct Dir DIR;
#define S_IXUSR 0000100 ///< execute/search permission, owner
#define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
#define S_IRGRP 0000040 ///< read permission, group
#define S_IWGRP 0000020 ///< write permission, grougroup
#define S_IWGRP 0000020 ///< write permission, group
#define S_IXGRP 0000010 ///< execute/search permission, group
#define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
#define S_IROTH 0000004 ///< read permission, other
@ -461,7 +461,7 @@ struct statvfs {
unsigned long f_namemax; ///< Maximum filename length
};
/* The following are dirent.h definitions are declared here to garuntee
/* The following are dirent.h definitions are declared here to guarantee
* consistency where structure may be different with different toolchains
*/
struct dirent {

View File

@ -48,7 +48,7 @@ class ElfHelper(object):
def print_HFSR_info(hfsr):
if int(hfsr, 16) & 0x80000000:
print("\t\tDebug Event Occured")
print("\t\tDebug Event Occurred")
if int(hfsr, 16) & 0x40000000:
print("\t\tForced exception, a fault with configurable priority has been escalated to HardFault")
if int(hfsr, 16) & 0x2: