diff --git a/drivers/AnalogIn.h b/drivers/AnalogIn.h index f634fa5ee0..6e1cc5bc76 100644 --- a/drivers/AnalogIn.h +++ b/drivers/AnalogIn.h @@ -79,7 +79,7 @@ public: /** Read the input voltage, represented as an unsigned short in the range [0x0, 0xFFFF] * * @returns - * 16-bit unsigned short representing the current input voltage, normalised to a 16-bit value + * 16-bit unsigned short representing the current input voltage, normalized to a 16-bit value */ unsigned short read_u16() { diff --git a/drivers/AnalogOut.h b/drivers/AnalogOut.h index 2f49fef8bc..8057723a5a 100644 --- a/drivers/AnalogOut.h +++ b/drivers/AnalogOut.h @@ -79,7 +79,7 @@ public: /** Set the output voltage, represented as an unsigned short in the range [0x0, 0xFFFF] * * @param value 16-bit unsigned short representing the output voltage, - * normalised to a 16-bit value (0x0000 = 0v, 0xFFFF = 3.3v) + * normalized to a 16-bit value (0x0000 = 0v, 0xFFFF = 3.3v) */ void write_u16(unsigned short value) { diff --git a/drivers/CAN.h b/drivers/CAN.h index cc96f76733..8dd81446ee 100644 --- a/drivers/CAN.h +++ b/drivers/CAN.h @@ -201,7 +201,7 @@ public: */ int mode(Mode mode); - /** Filter out incomming messages + /** Filter out incoming messages * * @param id the id to filter on * @param mask the mask applied to the id diff --git a/drivers/Ethernet.h b/drivers/Ethernet.h index 06aa99a76a..a9b7c2c1db 100644 --- a/drivers/Ethernet.h +++ b/drivers/Ethernet.h @@ -59,7 +59,7 @@ class Ethernet : private NonCopyable { public: - /** Initialise the ethernet interface. + /** Initialize the ethernet interface. */ Ethernet(); diff --git a/drivers/I2C.h b/drivers/I2C.h index db3b505ae3..b72c54c13e 100644 --- a/drivers/I2C.h +++ b/drivers/I2C.h @@ -181,7 +181,7 @@ public: * This function locks the deep sleep until any event has occurred * * @param address 8/10 bit I2C slave address - * @param tx_buffer The TX buffer with data to be transfered + * @param tx_buffer The TX buffer with data to be transferred * @param tx_length The length of TX buffer in bytes * @param rx_buffer The RX buffer, which is used for received data * @param rx_length The length of RX buffer in bytes diff --git a/drivers/InterruptIn.h b/drivers/InterruptIn.h index af59801471..85928e3e85 100644 --- a/drivers/InterruptIn.h +++ b/drivers/InterruptIn.h @@ -156,7 +156,7 @@ public: */ void enable_irq(); - /** Disable IRQ. This method depends on hw implementation, might disable one + /** Disable IRQ. This method depends on hardware implementation, might disable one * port interrupts. For further information, check gpio_irq_disable(). */ void disable_irq(); diff --git a/drivers/MbedCRC.h b/drivers/MbedCRC.h index 24dfec32d5..f95a645cc3 100644 --- a/drivers/MbedCRC.h +++ b/drivers/MbedCRC.h @@ -119,7 +119,7 @@ public: * MbedCRC ct; --- Valid POLY_7BIT_SD * MbedCRC <0x1021, 16> ct; --- Valid POLY_16BIT_CCITT * MbedCRC ct; --- Invalid, compilation error - * MbedCRC ct (i,f,rd,rr) Consturctor can be used for not supported polynomials + * MbedCRC ct (i,f,rd,rr) Constructor can be used for not supported polynomials * MbedCRC sd(0, 0, false, false); Constructor can also be used for supported * polynomials with different intial/final/reflect values * diff --git a/drivers/PwmOut.h b/drivers/PwmOut.h index 2ec36bf987..6d6f847f8f 100644 --- a/drivers/PwmOut.h +++ b/drivers/PwmOut.h @@ -71,7 +71,7 @@ public: core_util_critical_section_exit(); } - /** Set the ouput duty-cycle, specified as a percentage (float) + /** Set the output duty-cycle, specified as a percentage (float) * * @param value A floating-point value representing the output duty-cycle, * specified as a percentage. The value should lie between diff --git a/drivers/SPI.h b/drivers/SPI.h index 363bbb9142..2fc5388757 100644 --- a/drivers/SPI.h +++ b/drivers/SPI.h @@ -163,7 +163,7 @@ public: * * 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, + * @param tx_buffer The TX buffer with data to be transferred. If NULL is passed, * the default SPI value is sent. * @param tx_length The length of TX buffer in bytes. * @param rx_buffer The RX buffer which is used for received data. If NULL is passed, @@ -215,7 +215,7 @@ protected: /** Start the transfer or put it on the queue. * - * @param tx_buffer The TX buffer with data to be transfered. If NULL is passed, + * @param tx_buffer The TX buffer with data to be transferred. If NULL is passed, * the default SPI value is sent * @param tx_length The length of TX buffer in bytes. * @param rx_buffer The RX buffer which is used for received data. If NULL is passed, @@ -233,7 +233,7 @@ protected: /** Put a transfer on the transfer queue. * - * @param tx_buffer The TX buffer with data to be transfered. If NULL is passed, + * @param tx_buffer The TX buffer with data to be transferred. If NULL is passed, * the default SPI value is sent. * @param tx_length The length of TX buffer in bytes. * @param rx_buffer The RX buffer which is used for received data. If NULL is passed, @@ -251,7 +251,7 @@ protected: /** Configure a callback, SPI peripheral, and initiate a new transfer. * - * @param tx_buffer The TX buffer with data to be transfered. If NULL is passed, + * @param tx_buffer The TX buffer with data to be transferred. If NULL is passed, * the default SPI value is sent. * @param tx_length The length of TX buffer in bytes. * @param rx_buffer The RX buffer which is used for received data. If NULL is passed, diff --git a/drivers/SerialBase.h b/drivers/SerialBase.h index 5d7989ecb5..d682db4349 100644 --- a/drivers/SerialBase.h +++ b/drivers/SerialBase.h @@ -97,7 +97,7 @@ public: /** Attach a function to call whenever a serial interrupt is generated * * @param func A pointer to a void function, or 0 to set as none - * @param type Which serial interrupt to attach the member function to (Seriall::RxIrq for receive, TxIrq for transmit buffer empty) + * @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty) */ void attach(Callback func, IrqType type = RxIrq); @@ -105,7 +105,7 @@ public: * * @param obj pointer to the object to call the member function on * @param method pointer to the member function to be called - * @param type Which serial interrupt to attach the member function to (Seriall::RxIrq for receive, TxIrq for transmit buffer empty) + * @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty) * @deprecated * The attach function does not support cv-qualifiers. Replaced by * attach(callback(obj, method), type). @@ -123,7 +123,7 @@ public: * * @param obj pointer to the object to call the member function on * @param method pointer to the member function to be called - * @param type Which serial interrupt to attach the member function to (Seriall::RxIrq for receive, TxIrq for transmit buffer empty) + * @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty) * @deprecated * The attach function does not support cv-qualifiers. Replaced by * attach(callback(obj, method), type). @@ -167,7 +167,7 @@ public: #if DEVICE_SERIAL_ASYNCH - /** Begin asynchronous write using 8bit buffer. The completition invokes registered TX event callback + /** Begin asynchronous write using 8bit buffer. The completion invokes registered TX event callback * * This function locks the deep sleep until any event has occurred * @@ -178,7 +178,7 @@ public: */ int write(const uint8_t *buffer, int length, const event_callback_t &callback, int event = SERIAL_EVENT_TX_COMPLETE); - /** Begin asynchronous write using 16bit buffer. The completition invokes registered TX event callback + /** Begin asynchronous write using 16bit buffer. The completion invokes registered TX event callback * * This function locks the deep sleep until any event has occurred * @@ -193,7 +193,7 @@ public: */ void abort_write(); - /** Begin asynchronous reading using 8bit buffer. The completition invokes registred RX event callback. + /** Begin asynchronous reading using 8bit buffer. The completion invokes registered RX event callback. * * This function locks the deep sleep until any event has occurred * @@ -205,7 +205,7 @@ public: */ int read(uint8_t *buffer, int length, const event_callback_t &callback, int event = SERIAL_EVENT_RX_COMPLETE, unsigned char char_match = SERIAL_RESERVED_CHAR_MATCH); - /** Begin asynchronous reading using 16bit buffer. The completition invokes registred RX event callback. + /** Begin asynchronous reading using 16bit buffer. The completion invokes registered RX event callback. * * This function locks the deep sleep until any event has occurred *