diff --git a/TESTS/mbedmicro-mbed/static_assert/test_c.c b/TESTS/mbedmicro-mbed/static_assert/test_c.c index 476c3b044f..e0f9923415 100644 --- a/TESTS/mbedmicro-mbed/static_assert/test_c.c +++ b/TESTS/mbedmicro-mbed/static_assert/test_c.c @@ -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), diff --git a/TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp b/TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp index 987c01ab9a..05741d3215 100644 --- a/TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp +++ b/TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp @@ -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), diff --git a/TESTS/netsocket/host_tests/udp_shotgun.py b/TESTS/netsocket/host_tests/udp_shotgun.py index cdf18f963b..535fa10600 100644 --- a/TESTS/netsocket/host_tests/udp_shotgun.py +++ b/TESTS/netsocket/host_tests/udp_shotgun.py @@ -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: diff --git a/TESTS/netsocket/tcp_packet_pressure/main.cpp b/TESTS/netsocket/tcp_packet_pressure/main.cpp index e4fe0df937..d0ae9b9490 100644 --- a/TESTS/netsocket/tcp_packet_pressure/main.cpp +++ b/TESTS/netsocket/tcp_packet_pressure/main.cpp @@ -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); diff --git a/TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp b/TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp index bfd6ed0524..85f5cb2f27 100644 --- a/TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp +++ b/TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp @@ -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); diff --git a/TESTS/netsocket/udp_packet_pressure/main.cpp b/TESTS/netsocket/udp_packet_pressure/main.cpp index 9357092735..7b626476a1 100644 --- a/TESTS/netsocket/udp_packet_pressure/main.cpp +++ b/TESTS/netsocket/udp_packet_pressure/main.cpp @@ -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); diff --git a/TESTS/netsocket/udp_packet_pressure_parallel/main.cpp b/TESTS/netsocket/udp_packet_pressure_parallel/main.cpp index 9a899bb293..c281cee42f 100644 --- a/TESTS/netsocket/udp_packet_pressure_parallel/main.cpp +++ b/TESTS/netsocket/udp_packet_pressure_parallel/main.cpp @@ -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); diff --git a/drivers/Ethernet.h b/drivers/Ethernet.h index ae4e999589..06aa99a76a 100644 --- a/drivers/Ethernet.h +++ b/drivers/Ethernet.h @@ -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 diff --git a/drivers/I2C.cpp b/drivers/I2C.cpp index 8be7a529fc..148d48ee38 100644 --- a/drivers/I2C.cpp +++ b/drivers/I2C.cpp @@ -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(); diff --git a/drivers/I2C.h b/drivers/I2C.h index 920a506eb7..a4b0598d29 100644 --- a/drivers/I2C.h +++ b/drivers/I2C.h @@ -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 diff --git a/drivers/RawSerial.h b/drivers/RawSerial.h index b39fac73bf..1ede0c8a33 100644 --- a/drivers/RawSerial.h +++ b/drivers/RawSerial.h @@ -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); diff --git a/drivers/SPI.cpp b/drivers/SPI.cpp index 7bb94018d1..cdc1170228 100644 --- a/drivers/SPI.cpp +++ b/drivers/SPI.cpp @@ -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 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 diff --git a/drivers/SPI.h b/drivers/SPI.h index af102dc07c..144191902c 100644 --- a/drivers/SPI.h +++ b/drivers/SPI.h @@ -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 diff --git a/drivers/SPISlave.h b/drivers/SPISlave.h index c6226b2c3d..ec8456cb75 100644 --- a/drivers/SPISlave.h +++ b/drivers/SPISlave.h @@ -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 diff --git a/drivers/SerialBase.h b/drivers/SerialBase.h index faf29a0699..970cf4d19c 100644 --- a/drivers/SerialBase.h +++ b/drivers/SerialBase.h @@ -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 diff --git a/events/Event.h b/events/Event.h index 2e2d8f6906..a704409bf8 100644 --- a/events/Event.h +++ b/events/Event.h @@ -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 { diff --git a/events/EventQueue.h b/events/EventQueue.h index 4ec28203a1..17ccfa4fa5 100644 --- a/events/EventQueue.h +++ b/events/EventQueue.h @@ -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 diff --git a/features/FEATURE_BLE/ble/BLEInstanceBase.h b/features/FEATURE_BLE/ble/BLEInstanceBase.h index d7ff34cb71..6f080c45d3 100644 --- a/features/FEATURE_BLE/ble/BLEInstanceBase.h +++ b/features/FEATURE_BLE/ble/BLEInstanceBase.h @@ -246,7 +246,7 @@ public: private: // this class is not a value type. - // prohibit copy construction and copy assignement + // prohibit copy construction and copy assignment BLEInstanceBase(const BLEInstanceBase&); BLEInstanceBase &operator=(const BLEInstanceBase&); }; diff --git a/features/FEATURE_BLE/ble/pal/AttClient.h b/features/FEATURE_BLE/ble/pal/AttClient.h index 56bd1a2f06..678f99562c 100644 --- a/features/FEATURE_BLE/ble/pal/AttClient.h +++ b/features/FEATURE_BLE/ble/pal/AttClient.h @@ -75,7 +75,7 @@ struct AttClient { * The mtu choosen for the connection is the minimum of the client Rx mtu * and server Rx mtu values. * - * If an error occured then the mtu used remains the default value. + * If an error occurred then the mtu used remains the default value. * * @param connection The handle of the connection to send this request to. * diff --git a/features/FEATURE_BLE/ble/pal/GapEvents.h b/features/FEATURE_BLE/ble/pal/GapEvents.h index a406d6cdcc..47cc2423dc 100644 --- a/features/FEATURE_BLE/ble/pal/GapEvents.h +++ b/features/FEATURE_BLE/ble/pal/GapEvents.h @@ -75,7 +75,7 @@ struct GapEvent { protected: GapEvent(GapEventType type) : type(type) { } - // Disable copy construction and copy assignement operations. + // Disable copy construction and copy assignment operations. GapEvent(const GapEvent&); GapEvent& operator=(const GapEvent&); }; diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ws-core/sw/wsf/include/wsf_buf.h b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ws-core/sw/wsf/include/wsf_buf.h index e15476ed4b..6b27ca73b3 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ws-core/sw/wsf/include/wsf_buf.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ws-core/sw/wsf/include/wsf_buf.h @@ -63,7 +63,7 @@ typedef struct /*! WSF buffer diagnostics - buffer allocation failure */ typedef struct { - uint8_t taskId; /*! Task handler ID where failure occured */ + uint8_t taskId; /*! Task handler ID where failure occurred */ uint16_t len; /*! Length of buffer being allocated */ } wsfBufDiagAllocFail_t; diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c index aec280a0fb..b810e4effd 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c @@ -57,7 +57,7 @@ void hal_sleep(void) return; } else { // next event will wakeup the CPU - // If an interrupt occured between the test of SCB->ICSR and this + // If an interrupt occurred between the test of SCB->ICSR and this // instruction, WFE will just not put the CPU to sleep __WFE(); } diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/id_manager.c b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/id_manager.c index c2942c84cd..436fc783d1 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/id_manager.c +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/id_manager.c @@ -359,7 +359,7 @@ bool is_duplicate_bonding_data(pm_peer_data_bonding_t const * p_bonding_data1, /**@brief Event handler for events from the peer_database module. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ static void pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/bootloader_dfu/dfu_types.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/bootloader_dfu/dfu_types.h index d26b72f7b6..f8e8c40b6f 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/bootloader_dfu/dfu_types.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/libraries/bootloader_dfu/dfu_types.h @@ -152,10 +152,10 @@ typedef enum typedef struct { dfu_update_status_code_t status_code; /**< Device Firmware Update status. */ - uint16_t app_crc; /**< CRC of the recieved application. */ - uint32_t sd_size; /**< Size of the recieved SoftDevice. */ - uint32_t bl_size; /**< Size of the recieved BootLoader. */ - uint32_t app_size; /**< Size of the recieved Application. */ + uint16_t app_crc; /**< CRC of the received application. */ + uint32_t sd_size; /**< Size of the received SoftDevice. */ + uint32_t bl_size; /**< Size of the received BootLoader. */ + uint32_t app_size; /**< Size of the received Application. */ uint32_t sd_image_start; /**< Location in flash where the received SoftDevice image is stored. */ } dfu_update_status_t; diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gap.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gap.h index be91c1df8e..d5943b8ee5 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gap.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gap.h @@ -721,7 +721,7 @@ typedef struct /**@brief GAP event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ union /**< union alternative identified by evt_id in enclosing struct. */ { ble_gap_evt_connected_t connected; /**< Connected Event Parameters. */ @@ -1153,7 +1153,7 @@ SVCALL(SD_BLE_GAP_DEVICE_NAME_GET, uint32_t, sd_ble_gap_device_name_get(uint8_t * @retval ::NRF_ERROR_INVALID_STATE Invalid state to perform operation. * @retval ::NRF_ERROR_BUSY The stack is busy, process pending events and retry. * @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied. - * @retval ::NRF_ERROR_TIMEOUT A SMP timout has occured, and further SMP operations on this link is prohibited. + * @retval ::NRF_ERROR_TIMEOUT A SMP timout has occurred, and further SMP operations on this link is prohibited. */ SVCALL(SD_BLE_GAP_AUTHENTICATE, uint32_t, sd_ble_gap_authenticate(uint16_t conn_handle, ble_gap_sec_params_t const *p_sec_params)); diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gattc.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gattc.h index bb074ce5cb..994ea2035e 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gattc.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_gattc.h @@ -239,7 +239,7 @@ typedef struct /**@brief GATTC event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ uint16_t gatt_status; /**< GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES. */ uint16_t error_handle; /**< In case of error: The handle causing the error. In all other cases @ref BLE_GATT_HANDLE_INVALID. */ union diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_l2cap.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_l2cap.h index 6e37a39560..f8e1e9258d 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_l2cap.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/ble_l2cap.h @@ -107,7 +107,7 @@ typedef struct /**@brief L2CAP event callback event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ union { ble_l2cap_evt_rx_t rx; /**< RX Event parameters. */ diff --git a/features/FEATURE_LWIP/lwip-interface/EthernetInterface.h b/features/FEATURE_LWIP/lwip-interface/EthernetInterface.h index 61fba64cd2..5ef6843adb 100644 --- a/features/FEATURE_LWIP/lwip-interface/EthernetInterface.h +++ b/features/FEATURE_LWIP/lwip-interface/EthernetInterface.h @@ -82,21 +82,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(); diff --git a/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget/lpc17xx_emac.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget/lpc17xx_emac.h index 9979a2560c..6e35c668a0 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget/lpc17xx_emac.h +++ b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/TARGET_LPCTarget/lpc17xx_emac.h @@ -249,7 +249,7 @@ extern "C" #define EMAC_TSV0_PKT_DEFER 0x00000040 /**< Packet Deferred */ #define EMAC_TSV0_EXC_DEFER 0x00000080 /**< Excessive Packet Deferral */ #define EMAC_TSV0_EXC_COLL 0x00000100 /**< Excessive Collision */ -#define EMAC_TSV0_LATE_COLL 0x00000200 /**< Late Collision Occured */ +#define EMAC_TSV0_LATE_COLL 0x00000200 /**< Late Collision Occurred */ #define EMAC_TSV0_GIANT 0x00000400 /**< Giant Frame */ #define EMAC_TSV0_UNDERRUN 0x00000800 /**< Buffer Underrun */ #define EMAC_TSV0_BYTES 0x0FFFF000 /**< Total Bytes Transferred */ @@ -373,7 +373,7 @@ extern "C" #define EMAC_RINFO_OVERRUN 0x10000000 /**< Receive overrun */ #define EMAC_RINFO_NO_DESCR 0x20000000 /**< No new Descriptor available */ #define EMAC_RINFO_LAST_FLAG 0x40000000 /**< Last Fragment in Frame */ -#define EMAC_RINFO_ERR 0x80000000 /**< Error Occured (OR of all errors) */ +#define EMAC_RINFO_ERR 0x80000000 /**< Error Occurred (OR of all errors) */ #define EMAC_RINFO_ERR_MASK (EMAC_RINFO_FAIL_FILT | EMAC_RINFO_CRC_ERR | EMAC_RINFO_SYM_ERR | \ EMAC_RINFO_LEN_ERR | EMAC_RINFO_ALIGN_ERR | EMAC_RINFO_OVERRUN) @@ -395,10 +395,10 @@ EMAC_RINFO_LEN_ERR | EMAC_RINFO_ALIGN_ERR | EMAC_RINFO_OVERRUN) #define EMAC_TINFO_DEFER 0x02000000 /**< Packet Deferred (not an error) */ #define EMAC_TINFO_EXCESS_DEF 0x04000000 /**< Excessive Deferral */ #define EMAC_TINFO_EXCESS_COL 0x08000000 /**< Excessive Collision */ -#define EMAC_TINFO_LATE_COL 0x10000000 /**< Late Collision Occured */ +#define EMAC_TINFO_LATE_COL 0x10000000 /**< Late Collision Occurred */ #define EMAC_TINFO_UNDERRUN 0x20000000 /**< Transmit Underrun */ #define EMAC_TINFO_NO_DESCR 0x40000000 /**< No new Descriptor available */ -#define EMAC_TINFO_ERR 0x80000000 /**< Error Occured (OR of all errors) */ +#define EMAC_TINFO_ERR 0x80000000 /**< Error Occurred (OR of all errors) */ #ifdef MCB_LPC_1768 /* DP83848C PHY definition ------------------------------------------------------------ */ @@ -417,7 +417,7 @@ EMAC_RINFO_LEN_ERR | EMAC_RINFO_ALIGN_ERR | EMAC_RINFO_OVERRUN) #define EMAC_PHY_REG_IDR1 0x02 /**< PHY Identifier 1 */ #define EMAC_PHY_REG_IDR2 0x03 /**< PHY Identifier 2 */ #define EMAC_PHY_REG_ANAR 0x04 /**< Auto-Negotiation Advertisement */ -#define EMAC_PHY_REG_ANLPAR 0x05 /**< Auto-Neg. Link Partner Abitily */ +#define EMAC_PHY_REG_ANLPAR 0x05 /**< Auto-Neg. Link Partner Ability */ #define EMAC_PHY_REG_ANER 0x06 /**< Auto-Neg. Expansion Register */ #define EMAC_PHY_REG_ANNPTR 0x07 /**< Auto-Neg. Next Page TX */ #define EMAC_PHY_REG_LPNPA 0x08 @@ -504,7 +504,7 @@ EMAC_RINFO_LEN_ERR | EMAC_RINFO_ALIGN_ERR | EMAC_RINFO_OVERRUN) #define EMAC_PHY_REG_IDR1 0x02 /**< PHY Identifier 1 */ #define EMAC_PHY_REG_IDR2 0x03 /**< PHY Identifier 2 */ #define EMAC_PHY_REG_ANAR 0x04 /**< Auto-Negotiation Advertisement */ -#define EMAC_PHY_REG_ANLPAR 0x05 /**< Auto-Neg. Link Partner Abitily */ +#define EMAC_PHY_REG_ANLPAR 0x05 /**< Auto-Neg. Link Partner Ability */ #define EMAC_PHY_REG_ANER 0x06 /**< Auto-Neg. Expansion Register */ #define EMAC_PHY_REG_ANNPTR 0x07 /**< Auto-Neg. Next Page TX */ #define EMAC_PHY_REG_LPNPA 0x08 /**< Link Partner Next Page Ability */ diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG b/features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG index 1a5e27ba8b..bb10408c0f 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG +++ b/features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG @@ -3918,7 +3918,7 @@ HISTORY ++ Bug fixes: * Fixed pool pbuf memory leak in pbuf_alloc(). - Occured if not enough PBUF_POOL pbufs for a packet pbuf chain. + Occurred if not enough PBUF_POOL pbufs for a packet pbuf chain. Reported by Savin Zlobec. * PBUF_POOL chains had their tot_len field not set for non-first diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c index 0cb7ca997c..f95c3b38f8 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c @@ -1469,7 +1469,7 @@ snmp_complete_outbound_frame(struct snmp_request *request) if (request->error_status == SNMP_ERR_TOOBIG) { request->error_index = 0; /* defined by RFC 1157 */ } else if (request->error_index == 0) { - /* set index to varbind where error occured (if not already set before, e.g. during GetBulk processing) */ + /* set index to varbind where error occurred (if not already set before, e.g. during GetBulk processing) */ request->error_index = request->inbound_varbind_enumerator.varbind_count; } } else { diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/tftp/lwip_tftp_server.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/tftp/lwip_tftp_server.c index 243b0924bd..a9d98b8cc1 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/tftp/lwip_tftp_server.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/tftp/lwip_tftp_server.c @@ -191,7 +191,7 @@ send_data(void) ret = tftp_state.ctx->read(tftp_state.handle, &payload[2], TFTP_MAX_PAYLOAD_SIZE); if (ret < 0) { - send_error(&tftp_state.addr, tftp_state.port, TFTP_ERROR_ACCESS_VIOLATION, "Error occured while reading the file."); + send_error(&tftp_state.addr, tftp_state.port, TFTP_ERROR_ACCESS_VIOLATION, "Error occurred while reading the file."); close_handle(); return; } diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c index 05108a0628..cce0ae3d7d 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c @@ -1744,7 +1744,7 @@ static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) { } endswitch: if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ + rc != CONFACK) /* but prior CI wasn't? */ continue; /* Don't send this one */ if (orc == CONFNAK) { /* Nak this CI? */ diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c index f1592c6faf..f34375b498 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c @@ -1011,7 +1011,7 @@ endswitch: IPV6CPDEBUG((" (%s)\n", CODENAME(orc))); if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ + rc != CONFACK) /* but prior CI wasn't? */ continue; /* Don't send this one */ if (orc == CONFNAK) { /* Nak this CI? */ diff --git a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c index 90ed183b75..fe050b4bc1 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c @@ -2232,7 +2232,7 @@ static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree) { endswitch: if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ + rc != CONFACK) /* but prior CI wasn't? */ continue; /* Don't send this one */ if (orc == CONFNAK) { /* Nak this CI? */ diff --git a/features/filesystem/bd/BlockDevice.h b/features/filesystem/bd/BlockDevice.h index 81159b90ac..51118d7941 100644 --- a/features/filesystem/bd/BlockDevice.h +++ b/features/filesystem/bd/BlockDevice.h @@ -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; diff --git a/features/filesystem/bd/ChainingBlockDevice.h b/features/filesystem/bd/ChainingBlockDevice.h index b6b7936591..c3b79e6b58 100644 --- a/features/filesystem/bd/ChainingBlockDevice.h +++ b/features/filesystem/bd/ChainingBlockDevice.h @@ -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; diff --git a/features/filesystem/bd/HeapBlockDevice.h b/features/filesystem/bd/HeapBlockDevice.h index afdaeef744..8fc31cee46 100644 --- a/features/filesystem/bd/HeapBlockDevice.h +++ b/features/filesystem/bd/HeapBlockDevice.h @@ -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; diff --git a/features/filesystem/bd/MBRBlockDevice.h b/features/filesystem/bd/MBRBlockDevice.h index c44e5f854a..bfb43d607c 100644 --- a/features/filesystem/bd/MBRBlockDevice.h +++ b/features/filesystem/bd/MBRBlockDevice.h @@ -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; diff --git a/features/filesystem/bd/ProfilingBlockDevice.h b/features/filesystem/bd/ProfilingBlockDevice.h index bed93f14f9..d8196ea45b 100644 --- a/features/filesystem/bd/ProfilingBlockDevice.h +++ b/features/filesystem/bd/ProfilingBlockDevice.h @@ -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; diff --git a/features/filesystem/bd/SlicingBlockDevice.h b/features/filesystem/bd/SlicingBlockDevice.h index 90482ed719..0278413389 100644 --- a/features/filesystem/bd/SlicingBlockDevice.h +++ b/features/filesystem/bd/SlicingBlockDevice.h @@ -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; diff --git a/features/filesystem/fat/ChaN/ff.cpp b/features/filesystem/fat/ChaN/ff.cpp index cc04154a30..ea827af866 100644 --- a/features/filesystem/fat/ChaN/ff.cpp +++ b/features/filesystem/fat/ChaN/ff.cpp @@ -3299,7 +3299,7 @@ FRESULT find_volume ( /* FR_OK(0): successful, !=0: any error occurred */ fmt = bsect ? check_fs(fs, bsect) : 3; /* Check the partition */ } while (LD2PT(vol) == 0 && fmt >= 2 && ++i < 4); } - if (fmt == 4) return FR_DISK_ERR; /* An error occured in the disk I/O layer */ + if (fmt == 4) return FR_DISK_ERR; /* An error occurred in the disk I/O layer */ if (fmt >= 2) return FR_NO_FILESYSTEM; /* No FAT volume is found */ /* An FAT volume is found (bsect). Following code initializes the filesystem object */ diff --git a/features/filesystem/littlefs/littlefs/lfs.h b/features/filesystem/littlefs/littlefs/lfs.h index ad379852b7..f20a1d4f00 100644 --- a/features/filesystem/littlefs/littlefs/lfs.h +++ b/features/filesystem/littlefs/littlefs/lfs.h @@ -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 diff --git a/features/lorawan/LoRaWANStack.cpp b/features/lorawan/LoRaWANStack.cpp index 418322ed14..f2c4be02f7 100644 --- a/features/lorawan/LoRaWANStack.cpp +++ b/features/lorawan/LoRaWANStack.cpp @@ -860,7 +860,7 @@ void LoRaWANStack::mcps_confirm_handler(loramac_mcps_confirm_t *mcps_confirm) } if (mcps_confirm->status != LORAMAC_EVENT_INFO_STATUS_OK) { - // Couldn't schedule packet, ack not recieved in CONFIRMED case + // Couldn't schedule packet, ack not received in CONFIRMED case // or some other error happened. Discard buffer, unset the tx-ongoing // flag and let the application know _tx_msg.tx_ongoing = false; diff --git a/features/mbedtls/inc/mbedtls/bignum.h b/features/mbedtls/inc/mbedtls/bignum.h index 3bf02a7ee1..c5730db628 100644 --- a/features/mbedtls/inc/mbedtls/bignum.h +++ b/features/mbedtls/inc/mbedtls/bignum.h @@ -243,7 +243,7 @@ int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); /** - * \brief Safe conditional assignement X = Y if assign is 1 + * \brief Safe conditional assignment X = Y if assign is 1 * * \param X MPI to conditionally assign to * \param Y Value to be assigned diff --git a/features/mbedtls/inc/mbedtls/x509.h b/features/mbedtls/inc/mbedtls/x509.h index d6db9c6e37..2a3d7eca9a 100644 --- a/features/mbedtls/inc/mbedtls/x509.h +++ b/features/mbedtls/inc/mbedtls/x509.h @@ -77,7 +77,7 @@ #define MBEDTLS_ERR_X509_ALLOC_FAILED -0x2880 /**< Allocation of memory failed. */ #define MBEDTLS_ERR_X509_FILE_IO_ERROR -0x2900 /**< Read/write of file failed. */ #define MBEDTLS_ERR_X509_BUFFER_TOO_SMALL -0x2980 /**< Destination buffer is too small. */ -#define MBEDTLS_ERR_X509_FATAL_ERROR -0x3000 /**< A fatal error occured, eg the chain is too long or the vrfy callback failed. */ +#define MBEDTLS_ERR_X509_FATAL_ERROR -0x3000 /**< A fatal error occurred, eg the chain is too long or the vrfy callback failed. */ /* \} name */ /** @@ -250,7 +250,7 @@ int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *se * * \param to mbedtls_x509_time to check * - * \return 1 if the given time is in the past or an error occured, + * \return 1 if the given time is in the past or an error occurred, * 0 otherwise. */ int mbedtls_x509_time_is_past( const mbedtls_x509_time *to ); @@ -264,7 +264,7 @@ int mbedtls_x509_time_is_past( const mbedtls_x509_time *to ); * * \param from mbedtls_x509_time to check * - * \return 1 if the given time is in the future or an error occured, + * \return 1 if the given time is in the future or an error occurred, * 0 otherwise. */ int mbedtls_x509_time_is_future( const mbedtls_x509_time *from ); diff --git a/features/mbedtls/src/ecp.c b/features/mbedtls/src/ecp.c index b41baef27a..40e52591b9 100644 --- a/features/mbedtls/src/ecp.c +++ b/features/mbedtls/src/ecp.c @@ -1470,7 +1470,7 @@ cleanup: /* * For Montgomery curves, we do all the internal arithmetic in projective * coordinates. Import/export of points uses only the x coordinates, which is - * internaly represented as X / Z. + * internally represented as X / Z. * * For scalar multiplication, we'll use a Montgomery ladder. */ diff --git a/features/mbedtls/src/error.c b/features/mbedtls/src/error.c index 0292480aee..5a18477627 100644 --- a/features/mbedtls/src/error.c +++ b/features/mbedtls/src/error.c @@ -533,7 +533,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen ) if( use_ret == -(MBEDTLS_ERR_X509_BUFFER_TOO_SMALL) ) mbedtls_snprintf( buf, buflen, "X509 - Destination buffer is too small" ); if( use_ret == -(MBEDTLS_ERR_X509_FATAL_ERROR) ) - mbedtls_snprintf( buf, buflen, "X509 - A fatal error occured, eg the chain is too long or the vrfy callback failed" ); + mbedtls_snprintf( buf, buflen, "X509 - A fatal error occurred, eg the chain is too long or the vrfy callback failed" ); #endif /* MBEDTLS_X509_USE_C || MBEDTLS_X509_CREATE_C */ // END generated code diff --git a/features/mbedtls/targets/TARGET_STM/aes_alt.h b/features/mbedtls/targets/TARGET_STM/aes_alt.h index 120c9af5f1..7eadcb1e6a 100644 --- a/features/mbedtls/targets/TARGET_STM/aes_alt.h +++ b/features/mbedtls/targets/TARGET_STM/aes_alt.h @@ -32,7 +32,7 @@ extern "C" { #endif #define ST_AES_TIMEOUT ((uint32_t) 0xFF) /* 255 ms timeout for the crypto processor */ -#define ST_ERR_AES_BUSY (-0x0023) /* Crypto processor is busy, timeout occured */ +#define ST_ERR_AES_BUSY (-0x0023) /* Crypto processor is busy, timeout occurred */ /** * \brief AES context structure * diff --git a/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h index 453efa14ae..8259984cab 100644 --- a/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h +++ b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h @@ -68,7 +68,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 diff --git a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_dhcpv6_client.c b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_dhcpv6_client.c index 7005b52336..dd83e45c50 100644 --- a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_dhcpv6_client.c +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_dhcpv6_client.c @@ -60,7 +60,7 @@ void thread_dhcpv6_client_set_address(int8_t interface_id, dhcpv6_client_server_ void thread_dhcp_client_init(int8_t interface) { - // No support for multible thread instances yet. + // No support for multiple thread instances yet. dhcp_client.service_instance = dhcp_service_init(interface, DHCP_INSTANCE_CLIENT, NULL); dhcp_client.interface = interface; dhcp_client.libDhcp_instance = libdhcpv6_nonTemporal_entry_get_unique_instance_id(); diff --git a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_management_server.c b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_management_server.c index 329c26c14a..d98ab2f4a4 100644 --- a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_management_server.c +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/source/6LoWPAN/Thread/thread_management_server.c @@ -552,7 +552,7 @@ static uint32_t reverse_bits(uint32_t num) } static void thread_panid_scan_response(int8_t if_id, const mlme_scan_conf_t* conf) { - bool conflict_occured = false; + bool conflict_occurred = false; nwk_scan_params_t *scan_parameters_ptr; nwk_pan_descriptor_t *result; protocol_interface_info_entry_t *interface; @@ -599,12 +599,12 @@ static void thread_panid_scan_response(int8_t if_id, const mlme_scan_conf_t* con if(result->pan_descriptor->CoordPANId == this->scan_ptr->panid) { //if pan id matches then send a conflict message tr_debug("Same pan id was found on channel %d", result->pan_descriptor->LogicalChannel); set_channel_mask(this->scan_ptr->channel_mask,result->pan_descriptor->LogicalChannel,0); - conflict_occured = true; + conflict_occurred = true; } result = result->next; } while (result); - if (conflict_occured){ - tr_debug("conflict occured"); + if (conflict_occurred){ + tr_debug("conflict occurred"); this->scan_ptr->timer = eventOS_timeout_ms(thread_panid_conflict_timeout_cb, 2000, this); } thread_start_mac_with_link_configuration(interface,linkConfiguration); diff --git a/features/netsocket/NetworkInterface.h b/features/netsocket/NetworkInterface.h index 3d5d825370..486e2cf877 100644 --- a/features/netsocket/NetworkInterface.h +++ b/features/netsocket/NetworkInterface.h @@ -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(); diff --git a/features/netsocket/NetworkStack.h b/features/netsocket/NetworkStack.h index 27b9cc1f97..8688d0e833 100644 --- a/features/netsocket/NetworkStack.h +++ b/features/netsocket/NetworkStack.h @@ -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 diff --git a/features/netsocket/Socket.h b/features/netsocket/Socket.h index 4040abe5be..8c74a9e60c 100644 --- a/features/netsocket/Socket.h +++ b/features/netsocket/Socket.h @@ -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 diff --git a/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h b/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h index 80cee234b3..a649c82f69 100644 --- a/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h +++ b/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h @@ -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(); diff --git a/features/netsocket/nsapi_types.h b/features/netsocket/nsapi_types.h index b6b789d04c..cbf2e3f075 100644 --- a/features/netsocket/nsapi_types.h +++ b/features/netsocket/nsapi_types.h @@ -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 diff --git a/features/storage/FEATURE_STORAGE/cfstore/doc/design/configuration_store_hld.md b/features/storage/FEATURE_STORAGE/cfstore/doc/design/configuration_store_hld.md index 001cd8a1cb..5bb93bdbad 100644 --- a/features/storage/FEATURE_STORAGE/cfstore/doc/design/configuration_store_hld.md +++ b/features/storage/FEATURE_STORAGE/cfstore/doc/design/configuration_store_hld.md @@ -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(). diff --git a/features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c b/features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c index a988de6ebc..3edc14c4be 100644 --- a/features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c +++ b/features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c @@ -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); diff --git a/features/unsupported/USBDevice/USBMSD/USBMSD.cpp b/features/unsupported/USBDevice/USBMSD/USBMSD.cpp index 21d50f9b9f..a45c893c52 100644 --- a/features/unsupported/USBDevice/USBMSD/USBMSD.cpp +++ b/features/unsupported/USBDevice/USBMSD/USBMSD.cpp @@ -170,7 +170,7 @@ bool USBMSD::EPBULK_OUT_callback() { } break; - // an error has occured: stall endpoint and send CSW + // an error has occurred: stall endpoint and send CSW default: stallEndpoint(EPBULK_OUT); csw.Status = CSW_ERROR; @@ -207,7 +207,7 @@ bool USBMSD::EPBULK_IN_callback() { stage = READ_CBW; break; - // an error has occured + // an error has occurred default: stallEndpoint(EPBULK_IN); sendCSW(); diff --git a/features/unsupported/USBDevice/targets/TARGET_Silicon_Labs/src/em_usbdep.c b/features/unsupported/USBDevice/targets/TARGET_Silicon_Labs/src/em_usbdep.c index 2017edaf97..3846eb3d20 100644 --- a/features/unsupported/USBDevice/targets/TARGET_Silicon_Labs/src/em_usbdep.c +++ b/features/unsupported/USBDevice/targets/TARGET_Silicon_Labs/src/em_usbdep.c @@ -40,7 +40,7 @@ static const char *epStatusStr[] = { /* * USBDEP_Ep0Handler() is called each time a packet has been transmitted - * or recieved on the default endpoint. + * or received on the default endpoint. * A state machine navigate us through the phases of a control transfer * according to "chapter 9" in the USB spec. */ @@ -417,7 +417,7 @@ void USBDEP_Ep0Handler( USBD_Device_TypeDef *device ) /* * USBDEP_EpHandler() is called each time a packet has been transmitted - * or recieved on an endpoint other than the default endpoint. + * or received on an endpoint other than the default endpoint. */ void USBDEP_EpHandler( uint8_t epAddr ) { diff --git a/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h b/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h index 14633b8555..d012d7b946 100644 --- a/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h +++ b/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h @@ -48,7 +48,7 @@ public: * Pin Options: * (5, 6, 7) or (11, 12, 13) * - * 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 diff --git a/hal/ethernet_api.h b/hal/ethernet_api.h index 817f1f2f5b..1802db955e 100644 --- a/hal/ethernet_api.h +++ b/hal/ethernet_api.h @@ -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) diff --git a/hal/spi_api.h b/hal/spi_api.h index 7fbcf223e4..90117c822b 100644 --- a/hal/spi_api.h +++ b/hal/spi_api.h @@ -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. * diff --git a/platform/ATCmdParser.cpp b/platform/ATCmdParser.cpp index 50478c2c49..30a4b8fa2b 100644 --- a/platform/ATCmdParser.cpp +++ b/platform/ATCmdParser.cpp @@ -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; diff --git a/platform/Callback.h b/platform/Callback.h index b300afefad..b2f06e42fd 100644 --- a/platform/Callback.h +++ b/platform/Callback.h @@ -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); diff --git a/platform/NonCopyable.h b/platform/NonCopyable.h index 70444d1933..195a82cbd5 100644 --- a/platform/NonCopyable.h +++ b/platform/NonCopyable.h @@ -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 { * 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 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&); diff --git a/platform/mbed_retarget.h b/platform/mbed_retarget.h index e4837a7bfb..b3c6e6d502 100644 --- a/platform/mbed_retarget.h +++ b/platform/mbed_retarget.h @@ -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 { diff --git a/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/ethernet_api.c index d9755dfb33..2460a3741a 100644 --- a/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/ethernet_api.c +++ b/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/ethernet_api.c @@ -58,11 +58,11 @@ int ethernet_receive() return smsc9220_peek_next_packet_size(); } -/* Read from an recevied ethernet packet.*/ -/* After receive returnd a number bigger than 0 it is*/ +/* Read from an received ethernet packet.*/ +/* After receive returned a number bigger than 0 it is*/ /* possible to read bytes from this packet.*/ /* Read will write up to size bytes into data.*/ -/* It is possible to use read multible times.*/ +/* It is possible to use read multiple times.*/ /* Each time read will start reading after the last read byte before. */ int ethernet_read(char *data, int dlen) { diff --git a/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c index 2e20cb7113..036ee32578 100644 --- a/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c +++ b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c @@ -375,7 +375,7 @@ unsigned int smsc9220_recv_packet(unsigned int *recvbuf, unsigned int *index) if(rxfifo_stat != 0) { // Fetch status of this packet pktsize = ((rxfifo_stat >> 16) & 0x3FFF); if(rxfifo_stat & (1 << 15)) { - printf("Error occured during receiving of packets on the bus.\n"); + printf("Error occurred during receiving of packets on the bus.\n"); return 1; } else { /* Below formula (recommended by SMSC9220 code) diff --git a/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h index 2a15b24a6c..913191435d 100644 --- a/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h +++ b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h @@ -30,7 +30,7 @@ extern "C" { // send ethernet write buffer, returning the packet size sent int ethernet_transmission(unsigned char * pkt, unsigned int length); -// 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_reception(unsigned int *recvbuf, unsigned int *index); // get the ethernet address diff --git a/targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c index 78469a645f..360997c5dd 100644 --- a/targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c +++ b/targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c @@ -136,11 +136,11 @@ int ethernet_receive() return 0; } -// Read from an recevied ethernet packet. -// After receive returnd a number bigger than 0 it is +// Read from an received ethernet packet. +// After receive returned a number bigger than 0 it is // possible to read bytes from this packet. // Read will write up to size bytes into data. -// It is possible to use read multible times. +// It is possible to use read multiple times. // Each time read will start reading after the last read byte before. int ethernet_read(char *data, int dlen) diff --git a/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c index 3910871cd9..045cc07bc4 100644 --- a/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c +++ b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c @@ -375,7 +375,7 @@ unsigned int smsc9220_recv_packet(unsigned int *recvbuf, unsigned int *index) if(rxfifo_stat != 0) { // Fetch status of this packet pktsize = ((rxfifo_stat >> 16) & 0x3FFF); if(rxfifo_stat & (1 << 15)) { - printf("Error occured during receiving of packets on the bus.\n"); + printf("Error occurred during receiving of packets on the bus.\n"); return 1; } else { /* Below formula (recommended by SMSC9220 code) diff --git a/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h index 2a15b24a6c..913191435d 100644 --- a/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h +++ b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h @@ -30,7 +30,7 @@ extern "C" { // send ethernet write buffer, returning the packet size sent int ethernet_transmission(unsigned char * pkt, unsigned int length); -// 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_reception(unsigned int *recvbuf, unsigned int *index); // get the ethernet address diff --git a/targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c index 78469a645f..360997c5dd 100644 --- a/targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c +++ b/targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c @@ -136,11 +136,11 @@ int ethernet_receive() return 0; } -// Read from an recevied ethernet packet. -// After receive returnd a number bigger than 0 it is +// Read from an received ethernet packet. +// After receive returned a number bigger than 0 it is // possible to read bytes from this packet. // Read will write up to size bytes into data. -// It is possible to use read multible times. +// It is possible to use read multiple times. // Each time read will start reading after the last read byte before. int ethernet_read(char *data, int dlen) diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/spi_api.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/spi_api.c index dbecf7a149..17411e72f8 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/spi_api.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/spi_api.c @@ -327,7 +327,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. * diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/tmr/adi_tmr.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/tmr/adi_tmr.c index 9e889131ca..0882cbae8b 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/tmr/adi_tmr.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/tmr/adi_tmr.c @@ -303,7 +303,7 @@ ADI_TMR_RESULT adi_tmr_ConfigTimer(ADI_TMR_DEVICE const eDevice, ADI_TMR_CONFIG* * * @details The timer can be configured to capture the timer value when a specific event occurs. The * list of events can be found in the hardware reference manual. The callback function specified - * in #adi_tmr_Init will be supplied #ADI_TMR_EVENT_CAPTURE to indicate the event occured. The + * in #adi_tmr_Init will be supplied #ADI_TMR_EVENT_CAPTURE to indicate the event occurred. The * user can then read the captured value by calling #adi_tmr_GetCaptureCount. * * @note This function can only be called when the timer is disabled. diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/uart/adi_uart.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/uart/adi_uart.c index f0dc346bfa..5c7a020447 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/uart/adi_uart.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/uart/adi_uart.c @@ -1814,7 +1814,7 @@ ADI_UART_RESULT adi_uart_GetBaudRate( #endif /* ADI_DEBUG */ - /* If an error occured during autobaud this value will be set to a + /* If an error occurred during autobaud this value will be set to a non-zero value. The specific error can be found by checking against #ADI_UART_EVENT. */ diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/spi_api.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/spi_api.c index 7f9fd048c5..74ef22135a 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/spi_api.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/spi_api.c @@ -302,7 +302,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. * diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/tmr/adi_tmr.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/tmr/adi_tmr.c index b7153b79a8..505daff976 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/tmr/adi_tmr.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/tmr/adi_tmr.c @@ -284,7 +284,7 @@ ADI_TMR_RESULT adi_tmr_ConfigTimer(ADI_TMR_DEVICE const eDevice, ADI_TMR_CONFIG * * @details The timer can be configured to capture the timer value when a specific event occurs. The * list of events can be found in the hardware reference manual. The callback function specified - * in #adi_tmr_Init will be supplied #ADI_TMR_EVENT_CAPTURE to indicate the event occured. The + * in #adi_tmr_Init will be supplied #ADI_TMR_EVENT_CAPTURE to indicate the event occurred. The * user can then read the captured value by calling #adi_tmr_GetCaptureCount. * * @note This function can only be called when the timer is disabled. diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/uart/adi_uart.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/uart/adi_uart.c index d1f72d6048..a511985c6c 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/uart/adi_uart.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/bsp/uart/adi_uart.c @@ -1808,7 +1808,7 @@ ADI_UART_RESULT adi_uart_GetBaudRate( #endif /* ADI_DEBUG */ - /* If an error occured during autobaud this value will be set to a + /* If an error occurred during autobaud this value will be set to a non-zero value. The specific error can be found by checking against #ADI_UART_EVENT. */ diff --git a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c index 68e9defcc3..1038c22038 100644 --- a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c +++ b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c @@ -1354,10 +1354,10 @@ enum status_code tcc_set_pattern( * * \return Bitmask of \c TCC_STATUS_* flags. * - * \retval TCC_STATUS_CHANNEL_MATCH_CAPTURE(n) Channel n match/capture has occured + * \retval TCC_STATUS_CHANNEL_MATCH_CAPTURE(n) Channel n match/capture has occurred * \retval TCC_STATUS_CHANNEL_OUTPUT(n) Channel n match/capture output state - * \retval TCC_STATUS_NON_RECOVERABLE_FAULT_OCCUR(x) Non-recoverable fault x has occured - * \retval TCC_STATUS_RECOVERABLE_FAULT_OCCUR(n) Recoverable fault n has occured + * \retval TCC_STATUS_NON_RECOVERABLE_FAULT_OCCUR(x) Non-recoverable fault x has occurred + * \retval TCC_STATUS_RECOVERABLE_FAULT_OCCUR(n) Recoverable fault n has occurred * \retval TCC_STATUS_NON_RECOVERABLE_FAULT_PRESENT(x) Non-recoverable fault x input present * \retval TCC_STATUS_RECOVERABLE_FAULT_PRESENT(n) Recoverable fault n input present * \retval TCC_STATUS_SYNC_READY None of register is syncing diff --git a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h index ec409a340d..7a53cc60a5 100644 --- a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h +++ b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h @@ -852,7 +852,7 @@ enum tcc_callback { #define TCC_STATUS_CHANNEL_OUTPUT(ch) (1UL << ((ch)+8)) /** A Non-Recoverable Fault \c x (0 ~ 1) has occurred. */ #define TCC_STATUS_NON_RECOVERABLE_FAULT_OCCUR(x) (1UL << ((x)+16)) -/** A Recoverable Fault \c n (0 ~ 1 representing A ~ B) has occured. */ +/** A Recoverable Fault \c n (0 ~ 1 representing A ~ B) has occurred. */ #define TCC_STATUS_RECOVERABLE_FAULT_OCCUR(n) (1UL << ((n)+18)) /** The Non-Recoverable Fault \c x (0 ~ 1) input is present. */ #define TCC_STATUS_NON_RECOVERABLE_FAULT_PRESENT(x) (1UL << ((x)+20)) diff --git a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c index 2ca86a6b63..8fed98d48d 100644 --- a/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c +++ b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c @@ -1024,7 +1024,7 @@ int serial_rx_irq_handler_asynch(serial_t *obj) event |= SERIAL_EVENT_RX_CHARACTER_MATCH; } - /* Return to the call back if character match occured */ + /* Return to the call back if character match occurred */ if(event != 0) { serial_rx_abort_asynch(obj); return event & obj->serial.events; diff --git a/targets/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h index 987762aa64..f076cf2073 100644 --- a/targets/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h +++ b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h @@ -75,7 +75,7 @@ typedef struct { #define RSTC_SR_RSTTYP_WDT_RST (0x2u << 8) /**< \brief (RSTC_SR) Watchdog fault occurred */ #define RSTC_SR_RSTTYP_SOFT_RST (0x3u << 8) /**< \brief (RSTC_SR) Processor reset required by the software */ #define RSTC_SR_RSTTYP_USER_RST (0x4u << 8) /**< \brief (RSTC_SR) NRST pin detected low */ -#define RSTC_SR_RSTTYP_SLCK_XTAL_RST (0x7u << 8) /**< \brief (RSTC_SR) Slow Crystal Failure Detection fault occured */ +#define RSTC_SR_RSTTYP_SLCK_XTAL_RST (0x7u << 8) /**< \brief (RSTC_SR) Slow Crystal Failure Detection fault occurred */ #define RSTC_SR_NRSTL (0x1u << 16) /**< \brief (RSTC_SR) NRST Pin Level */ #define RSTC_SR_SRCMP (0x1u << 17) /**< \brief (RSTC_SR) Software Reset Command in Progress */ /* -------- RSTC_MR : (RSTC Offset: 0x08) Mode Register -------- */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/drivers/fsl_sai.c index 73ea64fa4e..57b8dbb499 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_qspi.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_qspi.c index 748a1e7167..db7a8e891a 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_qspi.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_qspi.c @@ -37,7 +37,7 @@ enum _qspi_transfer_state { kQSPI_TxBusy = 0x0U, /*!< QSPI is busy */ kQSPI_TxIdle, /*!< Transfer is done. */ - kQSPI_TxError /*!< Transfer error occured. */ + kQSPI_TxError /*!< Transfer error occurred. */ }; #define QSPI_AHB_BUFFER_REG(base, index) (*((uint32_t *)&(base->BUF0CR) + index)) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_sai.c index 0d19d09e7a..97620fb6ad 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_trng.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_trng.c index 959fb6050c..99f67b36a7 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_trng.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_trng.c @@ -1173,7 +1173,7 @@ typedef enum _trng_statistical_check * TRNG access mode in the SA-TRNG Miscellaneous Control Register. * * Values: - * - 0b0 - Programability of registers controlled only by the RNG Miscellaneous + * - 0b0 - Programmability of registers controlled only by the RNG Miscellaneous * Control Register's access mode bit. * - 0b1 - Overides RNG Miscellaneous Control Register access mode and prevents * TRNG register programming. diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai.c index c38165ec04..9c8aab085d 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h index 9606afcfdf..d5f55559f0 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h @@ -56,7 +56,7 @@ struct _sai_dma_handle uint8_t bytesPerFrame; /*!< Bytes in a frame */ uint8_t channel; /*!< Which Data channel SAI use */ uint32_t state; /*!< SAI DMA transfer internal state */ - sai_dma_callback_t callback; /*!< Callback for users while transfer finish or error occured */ + sai_dma_callback_t callback; /*!< Callback for users while transfer finish or error occurred */ void *userData; /*!< User callback parameter */ sai_transfer_t saiQueue[SAI_XFER_QUEUE_SIZE]; /*!< Transfer queue storing queued transfer. */ size_t transferSize[SAI_XFER_QUEUE_SIZE]; /*!< Data bytes need to transfer */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_qspi.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_qspi.c index 00f511cd73..2b23c1a11a 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_qspi.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_qspi.c @@ -37,7 +37,7 @@ enum _qspi_transfer_state { kQSPI_TxBusy = 0x0U, /*!< QSPI is busy */ kQSPI_TxIdle, /*!< Transfer is done. */ - kQSPI_TxError /*!< Transfer error occured. */ + kQSPI_TxError /*!< Transfer error occurred. */ }; #define QSPI_AHB_BUFFER_REG(base, index) (*((uint32_t *)&(base->BUF0CR) + index)) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_trng.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_trng.c index a5fd937dcd..d084fc1a58 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_trng.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/drivers/fsl_trng.c @@ -1173,7 +1173,7 @@ typedef enum _trng_statistical_check * TRNG access mode in the SA-TRNG Miscellaneous Control Register. * * Values: - * - 0b0 - Programability of registers controlled only by the RNG Miscellaneous + * - 0b0 - Programmability of registers controlled only by the RNG Miscellaneous * Control Register's access mode bit. * - 0b1 - Overides RNG Miscellaneous Control Register access mode and prevents * TRNG register programming. diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/drivers/fsl_sai.c index c38165ec04..9c8aab085d 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/drivers/fsl_trng.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/drivers/fsl_trng.c index a5fd937dcd..d084fc1a58 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/drivers/fsl_trng.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/drivers/fsl_trng.c @@ -1173,7 +1173,7 @@ typedef enum _trng_statistical_check * TRNG access mode in the SA-TRNG Miscellaneous Control Register. * * Values: - * - 0b0 - Programability of registers controlled only by the RNG Miscellaneous + * - 0b0 - Programmability of registers controlled only by the RNG Miscellaneous * Control Register's access mode bit. * - 0b1 - Overides RNG Miscellaneous Control Register access mode and prevents * TRNG register programming. diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/drivers/fsl_sai.c index c38165ec04..9c8aab085d 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/drivers/fsl_sai.c index 73ea64fa4e..57b8dbb499 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c index 0d19d09e7a..97620fb6ad 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/tmr_utils.h b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/tmr_utils.h index a6712372ba..14f1aab224 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/tmr_utils.h +++ b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/tmr_utils.h @@ -75,7 +75,7 @@ void TMR_Delay(mxc_tmr_regs_t* tmr, unsigned long us); void TMR_TO_Start(mxc_tmr_regs_t* tmr, unsigned long us); /** - * @brief Check if the timeout has occured. + * @brief Check if the timeout has occurred. * @param tmr TMR module to operate on * @returns E_NO_ERROR if the timeout has not occurred, E_TIME_OUT if it has. */ diff --git a/targets/TARGET_Maxim/TARGET_MAX32630/mxc/aes.h b/targets/TARGET_Maxim/TARGET_MAX32630/mxc/aes.h index 70e452d1ca..f81510af91 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32630/mxc/aes.h +++ b/targets/TARGET_Maxim/TARGET_MAX32630/mxc/aes.h @@ -129,7 +129,7 @@ int AES_SetKey(const uint8_t *key, mxc_aes_mode_t mode); * @param dir Operation to perform, see #mxc_aes_dir_t for supported operations. * * @return #E_SUCCESS Operation completed successfully, output data is stored in @a *out. - * @return ErrorCode An @ref MXC_Error_Codes "Error Code" if an error occured. + * @return ErrorCode An @ref MXC_Error_Codes "Error Code" if an error occurred. */ int AES_ECBOp(const uint8_t *in, uint8_t *out, mxc_aes_mode_t mode, mxc_aes_dir_t dir); @@ -143,7 +143,7 @@ int AES_ECBOp(const uint8_t *in, uint8_t *out, mxc_aes_mode_t mode, mxc_aes_dir_ * @return #E_SUCCESS Output data was written to the location pointed * to by @a *out. * @return A @ref MXC_Error_Codes "Error Code" indicating the error that - * occured. + * occurred. */ int AES_GetOutput(uint8_t *out); diff --git a/targets/TARGET_Maxim/TARGET_MAX32630/mxc/tmr_utils.h b/targets/TARGET_Maxim/TARGET_MAX32630/mxc/tmr_utils.h index c401ff04ed..19c92ae994 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32630/mxc/tmr_utils.h +++ b/targets/TARGET_Maxim/TARGET_MAX32630/mxc/tmr_utils.h @@ -83,7 +83,7 @@ void TMR_Delay(mxc_tmr_regs_t* tmr, unsigned long us); void TMR_TO_Start(mxc_tmr_regs_t* tmr, unsigned long us); /** - * @brief Check if the timeout has occured. + * @brief Check if the timeout has occurred. * @param tmr TMR module to operate on * @return #E_NO_ERROR if the timeout has not occurred, #E_TIME_OUT if it has. */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h index 5aa20fe430..634da43bcb 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h @@ -283,7 +283,7 @@ typedef struct /**@brief GATTC event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ uint16_t gatt_status; /**< GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES. */ uint16_t error_handle; /**< In case of error: The handle causing the error. In all other cases @ref BLE_GATT_HANDLE_INVALID. */ union diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h index 57d3592969..e3fb2177cf 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h @@ -119,7 +119,7 @@ typedef struct /**@brief L2CAP event callback event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ union { ble_l2cap_evt_rx_t rx; /**< RX Event parameters. */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h index 5aa20fe430..634da43bcb 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h @@ -283,7 +283,7 @@ typedef struct /**@brief GATTC event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ uint16_t gatt_status; /**< GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES. */ uint16_t error_handle; /**< In case of error: The handle causing the error. In all other cases @ref BLE_GATT_HANDLE_INVALID. */ union diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h index 57d3592969..e3fb2177cf 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h @@ -119,7 +119,7 @@ typedef struct /**@brief L2CAP event callback event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ union { ble_l2cap_evt_rx_t rx; /**< RX Event parameters. */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_gattc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_gattc.h index eb1f7753d7..62175952d5 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_gattc.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_gattc.h @@ -301,7 +301,7 @@ typedef struct /**@brief GATTC event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ uint16_t gatt_status; /**< GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES. */ uint16_t error_handle; /**< In case of error: The handle causing the error. In all other cases @ref BLE_GATT_HANDLE_INVALID. */ union diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_l2cap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_l2cap.h index d3cc747b10..bb980764d9 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_l2cap.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/sdk/softdevice/s140/headers/nrf_ble_l2cap.h @@ -118,7 +118,7 @@ typedef struct /**@brief L2CAP event callback event structure. */ typedef struct { - uint16_t conn_handle; /**< Connection Handle on which event occured. */ + uint16_t conn_handle; /**< Connection Handle on which event occurred. */ union { ble_l2cap_evt_rx_t rx; /**< RX Event parameters. */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_error_log/ble_error_log.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_error_log/ble_error_log.h index ab121c2b3c..a685ad163e 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_error_log/ble_error_log.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_error_log/ble_error_log.h @@ -62,7 +62,7 @@ /**@brief Error Log Data structure. * * @details The structure contains the error, message/filename, line number as well as the current - * stack, at the time where an error occured. + * stack, at the time where an error occurred. */ typedef struct { @@ -82,8 +82,8 @@ typedef struct * * @param[in] err_code Error code to be logged. * @param[in] p_message Message to be written to the flash together with stack dump, usually - * the file name where the error occured. - * @param[in] line_number Line number where the error occured. + * the file name where the error occurred. + * @param[in] line_number Line number where the error occurred. * * @return NRF_SUCCESS on successful writing of the error log. * diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gattc_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gattc_cache_manager.c index e6b5469b41..d02d0a350f 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gattc_cache_manager.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gattc_cache_manager.c @@ -67,7 +67,7 @@ static void internal_state_reset(gccm_t * gccm) /**@brief Event handler for events from the peer_database module. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ static void pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gatts_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gatts_cache_manager.c index 8cbca8e3f1..25e5e7f402 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gatts_cache_manager.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/gatts_cache_manager.c @@ -116,7 +116,7 @@ static void service_changed_pending_set(void) /**@brief Event handler for events from the peer_database module. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ static void pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/id_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/id_manager.c index 94bc363ef6..38f20660a3 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/id_manager.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager/id_manager.c @@ -351,7 +351,7 @@ bool is_duplicate_bonding_data(pm_peer_data_bonding_t const * p_bonding_data1, /**@brief Event handler for events from the peer_database module. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ static void pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/device/nrf52_bitfields.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/device/nrf52_bitfields.h index c7802c46a3..6c4287f595 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/device/nrf52_bitfields.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/device/nrf52_bitfields.h @@ -13385,8 +13385,8 @@ /* Bit 0 : Overrun error */ #define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */ #define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */ -#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occured */ -#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occured */ +#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occurred */ +#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occurred */ /* Register: TWI_ENABLE */ /* Description: Enable TWI */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu/dfu_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu/dfu_types.h index 7a7421d878..e78723e739 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu/dfu_types.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu/dfu_types.h @@ -180,10 +180,10 @@ typedef enum typedef struct { dfu_update_status_code_t status_code; /**< Device Firmware Update status. */ - uint16_t app_crc; /**< CRC of the recieved application. */ - uint32_t sd_size; /**< Size of the recieved SoftDevice. */ - uint32_t bl_size; /**< Size of the recieved BootLoader. */ - uint32_t app_size; /**< Size of the recieved Application. */ + uint16_t app_crc; /**< CRC of the received application. */ + uint32_t sd_size; /**< Size of the received SoftDevice. */ + uint32_t bl_size; /**< Size of the received BootLoader. */ + uint32_t app_size; /**< Size of the received Application. */ uint32_t sd_image_start; /**< Location in flash where the received SoftDevice image is stored. */ } dfu_update_status_t; diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/ble_error_log/ble_error_log.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/ble_error_log/ble_error_log.h index 9a7556f983..0b8e540d59 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/ble_error_log/ble_error_log.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/ble_error_log/ble_error_log.h @@ -65,7 +65,7 @@ extern "C" { /**@brief Error Log Data structure. * * @details The structure contains the error, message/filename, line number as well as the current - * stack, at the time where an error occured. + * stack, at the time where an error occurred. */ typedef struct { @@ -85,8 +85,8 @@ typedef struct * * @param[in] err_code Error code to be logged. * @param[in] p_message Message to be written to the flash together with stack dump, usually - * the file name where the error occured. - * @param[in] line_number Line number where the error occured. + * the file name where the error occurred. + * @param[in] line_number Line number where the error occurred. * * @return NRF_SUCCESS on successful writing of the error log. * diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/gatts_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/gatts_cache_manager.c index 3f4ac47060..3aba5f7a76 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/gatts_cache_manager.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/gatts_cache_manager.c @@ -126,7 +126,7 @@ static void service_changed_pending_set(void) /**@brief Event handler for events from the Peer Database module. * This function is extern in Peer Database. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ void gscm_pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/id_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/id_manager.c index 03cf432591..fa565c8520 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/id_manager.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/ble/peer_manager/id_manager.c @@ -365,7 +365,7 @@ bool im_is_duplicate_bonding_data(pm_peer_data_bonding_t const * p_bonding_data1 /**@brief Event handler for events from the Peer Database module. * This function is extern in Peer Database. * - * @param[in] p_event The event that has happend with peer id and flags. + * @param[in] p_event The event that has happened with peer id and flags. */ void im_pdb_evt_handler(pdb_evt_t const * p_event) { diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52840_bitfields.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52840_bitfields.h index 3c71d50578..ac856b8628 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52840_bitfields.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52840_bitfields.h @@ -11762,8 +11762,8 @@ /* Bit 0 : Overrun error */ #define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */ #define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */ -#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occured */ -#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occured */ +#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occurred */ +#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occurred */ /* Register: TWI_ENABLE */ /* Description: Enable TWI */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52_bitfields.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52_bitfields.h index 9debbb6a26..c6fa759ecb 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52_bitfields.h +++ b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK13/device/nrf52_bitfields.h @@ -11114,8 +11114,8 @@ /* Bit 0 : Overrun error */ #define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */ #define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */ -#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occured */ -#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occured */ +#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occurred */ +#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occurred */ #define TWI_ERRORSRC_OVERRUN_Clear (1UL) /*!< Write: clear error on writing '1' */ /* Register: TWI_ENABLE */ diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c index 0835c51765..38dea91aa1 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c @@ -112,7 +112,7 @@ typedef struct { void (*tx_asynch_handler)(); uint32_t events_wanted; - uint32_t events_occured; + uint32_t events_occurred; #define UART_IRQ_TX 1 #define UART_IRQ_RX 2 @@ -165,13 +165,13 @@ void UART_IRQ_HANDLER(void) if (UART_CB.char_match != SERIAL_RESERVED_CHAR_MATCH && rx_data == UART_CB.char_match) { // If it does, report the match and abort further receiving. - UART_CB.events_occured |= SERIAL_EVENT_RX_CHARACTER_MATCH; + UART_CB.events_occurred |= SERIAL_EVENT_RX_CHARACTER_MATCH; if (UART_CB.events_wanted & SERIAL_EVENT_RX_CHARACTER_MATCH) { end_rx = true; } } if (++UART_CB.rx_pos >= UART_CB.rx_length) { - UART_CB.events_occured |= SERIAL_EVENT_RX_COMPLETE; + UART_CB.events_occurred |= SERIAL_EVENT_RX_COMPLETE; end_rx = true; } if (end_rx) { @@ -215,7 +215,7 @@ void UART_IRQ_HANDLER(void) // 'serial_writable' function to work properly. end_asynch_tx(); - UART_CB.events_occured |= SERIAL_EVENT_TX_COMPLETE; + UART_CB.events_occurred |= SERIAL_EVENT_TX_COMPLETE; if (UART_CB.tx_asynch_handler) { // Use local variable to make it possible to start a next // transfer from callback routine. @@ -239,15 +239,15 @@ void UART_IRQ_HANDLER(void) uint8_t errorsrc = nrf_uart_errorsrc_get_and_clear(UART_INSTANCE); if (UART_CB.rx_asynch_handler) { - UART_CB.events_occured |= SERIAL_EVENT_ERROR; + UART_CB.events_occurred |= SERIAL_EVENT_ERROR; if (errorsrc & NRF_UART_ERROR_PARITY_MASK) { - UART_CB.events_occured |= SERIAL_EVENT_RX_PARITY_ERROR; + UART_CB.events_occurred |= SERIAL_EVENT_RX_PARITY_ERROR; } if (errorsrc & NRF_UART_ERROR_FRAMING_MASK) { - UART_CB.events_occured |= SERIAL_EVENT_RX_FRAMING_ERROR; + UART_CB.events_occurred |= SERIAL_EVENT_RX_FRAMING_ERROR; } if (errorsrc & NRF_UART_ERROR_OVERRUN_MASK) { - UART_CB.events_occured |= SERIAL_EVENT_RX_OVERRUN_ERROR; + UART_CB.events_occurred |= SERIAL_EVENT_RX_OVERRUN_ERROR; } UART_CB.rx_asynch_handler(); } @@ -641,8 +641,8 @@ uint8_t serial_rx_active(serial_t *obj) int serial_irq_handler_asynch(serial_t *obj) { (void)obj; - uint32_t events_to_report = UART_CB.events_wanted & UART_CB.events_occured; - UART_CB.events_occured &= (~events_to_report); + uint32_t events_to_report = UART_CB.events_wanted & UART_CB.events_occurred; + UART_CB.events_occurred &= (~events_to_report); return events_to_report; } diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c b/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c index f806e7a0a6..7bb2d85f4c 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c @@ -66,7 +66,7 @@ void hal_sleep(void) return; } else { // next event will wakeup the CPU - // If an interrupt occured between the test of SCB->ICSR and this + // If an interrupt occurred between the test of SCB->ICSR and this // instruction, WFE will just not put the CPU to sleep __WFE(); } diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h b/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h index 00af9638de..5ae86a9c14 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/device/NUC472_442.h @@ -20502,7 +20502,7 @@ typedef struct { * | | |Note: This bit is only cleared by writing 1 to it. * |[2] |OVUNF |QEI Counter Overflow Or Underflow Flag * | | |Flag is set by hardware while QEI_CNT overflows from 0xFFFF_FFFF to zero in free-counting mode or from the QEI_MAXCNT value to zero in compare-counting mode. - * | | |Similarly, the flag is set wile QEI counter underflows from zero to 0xFFFF_FFFF or QEI_MAXCNT. + * | | |Similarly, the flag is set while QEI counter underflows from zero to 0xFFFF_FFFF or QEI_MAXCNT. * | | |0 = No overflow or underflow occurs in QEI counter. * | | |1 = QEI counter occurs counting overflow or underflow. * | | |Note: This bit is only cleared by writing 1 to it. diff --git a/targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c index 84eeed8f93..f0e53c483e 100644 --- a/targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c @@ -204,7 +204,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c index 4c5202d6bc..5bfd6433e1 100644 --- a/targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c @@ -187,7 +187,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c index 52f6f4486e..21976fb217 100644 --- a/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c @@ -197,7 +197,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c index 415ef071af..97fbb29018 100644 --- a/targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c @@ -197,7 +197,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c index 0b4b7a8312..d98ca77a69 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c +++ b/targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c @@ -172,7 +172,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TSV0_PKT_DEFER 0x00000040 /* Packet Deferred */ #define TSV0_EXC_DEFER 0x00000080 /* Excessive Packet Deferral */ #define TSV0_EXC_COLL 0x00000100 /* Excessive Collision */ -#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occured */ +#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occurred */ #define TSV0_GIANT 0x00000400 /* Giant Frame */ #define TSV0_UNDERRUN 0x00000800 /* Buffer Underrun */ #define TSV0_BYTES 0x0FFFF000 /* Total Bytes Transferred */ @@ -268,7 +268,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define RINFO_OVERRUN 0x10000000 /* Receive overrun */ #define RINFO_NO_DESCR 0x20000000 /* No new Descriptor available */ #define RINFO_LAST_FLAG 0x40000000 /* Last Fragment in Frame */ -#define RINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define RINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ //#define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_CRC_ERR | RINFO_SYM_ERR | RINFO_LEN_ERR | RINFO_ALIGN_ERR | RINFO_OVERRUN) #define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_SYM_ERR | \ @@ -289,10 +289,10 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TINFO_DEFER 0x02000000 /* Packet Deferred (not an error) */ #define TINFO_EXCESS_DEF 0x04000000 /* Excessive Deferral */ #define TINFO_EXCESS_COL 0x08000000 /* Excessive Collision */ -#define TINFO_LATE_COL 0x10000000 /* Late Collision Occured */ +#define TINFO_LATE_COL 0x10000000 /* Late Collision Occurred */ #define TINFO_UNDERRUN 0x20000000 /* Transmit Underrun */ #define TINFO_NO_DESCR 0x40000000 /* No new Descriptor available */ -#define TINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define TINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ /* ENET Device Revision ID */ #define OLD_EMAC_MODULE_ID 0x39022000 /* Rev. ID for first rev '-' */ @@ -303,7 +303,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define PHY_REG_IDR1 0x02 /* PHY Identifier 1 */ #define PHY_REG_IDR2 0x03 /* PHY Identifier 2 */ #define PHY_REG_ANAR 0x04 /* Auto-Negotiation Advertisement */ -#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Abitily */ +#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Ability */ #define PHY_REG_ANER 0x06 /* Auto-Neg. Expansion Register */ #define PHY_REG_ANNPTR 0x07 /* Auto-Neg. Next Page TX */ @@ -540,8 +540,8 @@ void ethernet_free() { // if(TxProduceIndex == TxConsumeIndex) buffer array is empty // if(TxProduceIndex == TxConsumeIndex - 1) buffer is full, should not fill -// TxProduceIndex - The buffer that will/is being fileld by driver, s/w increment -// TxConsumeIndex - The buffer that will/is beign sent by hardware +// TxProduceIndex - The buffer that will be / is being fileld by driver, s/w increment +// TxConsumeIndex - The buffer that will be / is being sent by hardware int ethernet_write(const char *data, int slen) { @@ -651,22 +651,22 @@ int ethernet_send() { #endif } -// RxConsmeIndex - The index of buffer the driver will/is reading from. Driver should inc once read -// RxProduceIndex - The index of buffer that will/is being filled by MAC. H/w will inc once rxd +// RxConsmeIndex - The index of buffer the driver will read / is reading from. Driver should inc once read +// RxProduceIndex - The index of buffer that will be / is being filled by MAC. H/w will inc once rxd // // if(RxConsumeIndex == RxProduceIndex) buffer array is empty // if(RxConsumeIndex == RxProduceIndex + 1) buffer array is full -// 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. // Returns size of packet, else 0 if nothing to receive // We read from RxConsumeIndex from position rx_consume_offset -// if rx_consume_offset < 0, then we have not recieved the RxConsumeIndex packet for reading +// if rx_consume_offset < 0, then we have not received the RxConsumeIndex packet for reading // rx_consume_offset = -1 // no frame // rx_consume_offset = 0 // start of frame -// Assumption: A fragment should alway be a whole frame +// Assumption: A fragment should always be a whole frame int ethernet_receive() { #if NEW_LOGIC @@ -722,11 +722,11 @@ int ethernet_receive() { #endif } -// Read from an recevied ethernet packet. -// After receive returnd a number bigger than 0 it is +// Read from an received ethernet packet. +// After receive returned a number bigger than 0 it is // possible to read bytes from this packet. // Read will write up to size bytes into data. -// It is possible to use read multible times. +// It is possible to use read multiple times. // Each time read will start reading after the last read byte before. int ethernet_read(char *data, int dlen) { diff --git a/targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c index fb2ed1656a..fde4e8e746 100644 --- a/targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c @@ -204,7 +204,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c index 7ea6885fbf..3583096b06 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c +++ b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c @@ -100,7 +100,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define MAC2_PPREAM_ENF 0x00000100 /* Pure Preamble Enforcement */ #define MAC2_LPREAM_ENF 0x00000200 /* Long Preamble Enforcement */ #define MAC2_NO_BACKOFF 0x00001000 /* No Backoff Algorithm */ -#define MAC2_BACK_PRESSURE 0x00002000 /* Backoff Presurre / No Backoff */ +#define MAC2_BACK_PRESSURE 0x00002000 /* Backoff Pressure / No Backoff */ #define MAC2_EXCESS_DEF 0x00004000 /* Excess Defer */ /* Back-to-Back Inter-Packet-Gap Register */ @@ -166,19 +166,19 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TSV0_CRC_ERR 0x00000001 /* CRC error */ #define TSV0_LEN_CHKERR 0x00000002 /* Length Check Error */ #define TSV0_LEN_OUTRNG 0x00000004 /* Length Out of Range */ -#define TSV0_DONE 0x00000008 /* Tramsmission Completed */ +#define TSV0_DONE 0x00000008 /* Transmission Completed */ #define TSV0_MCAST 0x00000010 /* Multicast Destination */ #define TSV0_BCAST 0x00000020 /* Broadcast Destination */ #define TSV0_PKT_DEFER 0x00000040 /* Packet Deferred */ #define TSV0_EXC_DEFER 0x00000080 /* Excessive Packet Deferral */ #define TSV0_EXC_COLL 0x00000100 /* Excessive Collision */ -#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occured */ +#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occurred */ #define TSV0_GIANT 0x00000400 /* Giant Frame */ #define TSV0_UNDERRUN 0x00000800 /* Buffer Underrun */ #define TSV0_BYTES 0x0FFFF000 /* Total Bytes Transferred */ #define TSV0_CTRL_FRAME 0x10000000 /* Control Frame */ #define TSV0_PAUSE 0x20000000 /* Pause Frame */ -#define TSV0_BACK_PRESS 0x40000000 /* Backpressure Method Applied */ +#define TSV0_BACK_PRESS 0x40000000 /* Back pressure Method Applied */ #define TSV0_VLAN 0x80000000 /* VLAN Frame */ /* Transmit Status Vector 1 Register */ @@ -268,7 +268,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define RINFO_OVERRUN 0x10000000 /* Receive overrun */ #define RINFO_NO_DESCR 0x20000000 /* No new Descriptor available */ #define RINFO_LAST_FLAG 0x40000000 /* Last Fragment in Frame */ -#define RINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define RINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ //#define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_CRC_ERR | RINFO_SYM_ERR | RINFO_LEN_ERR | RINFO_ALIGN_ERR | RINFO_OVERRUN) #define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_SYM_ERR | \ @@ -289,10 +289,10 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TINFO_DEFER 0x02000000 /* Packet Deferred (not an error) */ #define TINFO_EXCESS_DEF 0x04000000 /* Excessive Deferral */ #define TINFO_EXCESS_COL 0x08000000 /* Excessive Collision */ -#define TINFO_LATE_COL 0x10000000 /* Late Collision Occured */ +#define TINFO_LATE_COL 0x10000000 /* Late Collision Occurred */ #define TINFO_UNDERRUN 0x20000000 /* Transmit Underrun */ #define TINFO_NO_DESCR 0x40000000 /* No new Descriptor available */ -#define TINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define TINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ /* ENET Device Revision ID */ #define OLD_EMAC_MODULE_ID 0x39022000 /* Rev. ID for first rev '-' */ @@ -303,7 +303,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define PHY_REG_IDR1 0x02 /* PHY Identifier 1 */ #define PHY_REG_IDR2 0x03 /* PHY Identifier 2 */ #define PHY_REG_ANAR 0x04 /* Auto-Negotiation Advertisement */ -#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Abitily */ +#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Ability */ #define PHY_REG_ANER 0x06 /* Auto-Neg. Expansion Register */ #define PHY_REG_ANNPTR 0x07 /* Auto-Neg. Next Page TX */ @@ -565,8 +565,8 @@ void ethernet_free() { // if(TxProduceIndex == TxConsumeIndex) buffer array is empty // if(TxProduceIndex == TxConsumeIndex - 1) buffer is full, should not fill -// TxProduceIndex - The buffer that will/is being fileld by driver, s/w increment -// TxConsumeIndex - The buffer that will/is beign sent by hardware +// TxProduceIndex - The buffer that will be / is being filled by driver, s/w increment +// TxConsumeIndex - The buffer that will be / is being sent by hardware int ethernet_write(const char *data, int slen) { @@ -676,22 +676,22 @@ int ethernet_send() { #endif } -// RxConsmeIndex - The index of buffer the driver will/is reading from. Driver should inc once read -// RxProduceIndex - The index of buffer that will/is being filled by MAC. H/w will inc once rxd +// RxConsmeIndex - The index of buffer the driver will read / is reading from. Driver should inc once read +// RxProduceIndex - The index of buffer that will be / is being filled by MAC. H/w will inc once rxd // // if(RxConsumeIndex == RxProduceIndex) buffer array is empty // if(RxConsumeIndex == RxProduceIndex + 1) buffer array is full -// 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. // Returns size of packet, else 0 if nothing to receive // We read from RxConsumeIndex from position rx_consume_offset -// if rx_consume_offset < 0, then we have not recieved the RxConsumeIndex packet for reading +// if rx_consume_offset < 0, then we have not received the RxConsumeIndex packet for reading // rx_consume_offset = -1 // no frame // rx_consume_offset = 0 // start of frame -// Assumption: A fragment should alway be a whole frame +// Assumption: A fragment should always be a whole frame int ethernet_receive() { #if NEW_LOGIC @@ -747,11 +747,11 @@ int ethernet_receive() { #endif } -// Read from an recevied ethernet packet. -// After receive returnd a number bigger than 0 it is +// Read from an received ethernet packet. +// After receive returned a number bigger than 0 it is // possible to read bytes from this packet. // Read will write up to size bytes into data. -// It is possible to use read multible times. +// It is possible to use read multiple times. // Each time read will start reading after the last read byte before. int ethernet_read(char *data, int dlen) { diff --git a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c index 730e51eb49..8a1cd29e8d 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c @@ -224,7 +224,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { int count, status; diff --git a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c index 67d344aa4e..6477094954 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c +++ b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c @@ -172,7 +172,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TSV0_PKT_DEFER 0x00000040 /* Packet Deferred */ #define TSV0_EXC_DEFER 0x00000080 /* Excessive Packet Deferral */ #define TSV0_EXC_COLL 0x00000100 /* Excessive Collision */ -#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occured */ +#define TSV0_LATE_COLL 0x00000200 /* Late Collision Occurred */ #define TSV0_GIANT 0x00000400 /* Giant Frame */ #define TSV0_UNDERRUN 0x00000800 /* Buffer Underrun */ #define TSV0_BYTES 0x0FFFF000 /* Total Bytes Transferred */ @@ -268,7 +268,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define RINFO_OVERRUN 0x10000000 /* Receive overrun */ #define RINFO_NO_DESCR 0x20000000 /* No new Descriptor available */ #define RINFO_LAST_FLAG 0x40000000 /* Last Fragment in Frame */ -#define RINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define RINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ //#define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_CRC_ERR | RINFO_SYM_ERR | RINFO_LEN_ERR | RINFO_ALIGN_ERR | RINFO_OVERRUN) #define RINFO_ERR_MASK (RINFO_FAIL_FILT | RINFO_SYM_ERR | \ @@ -289,10 +289,10 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define TINFO_DEFER 0x02000000 /* Packet Deferred (not an error) */ #define TINFO_EXCESS_DEF 0x04000000 /* Excessive Deferral */ #define TINFO_EXCESS_COL 0x08000000 /* Excessive Collision */ -#define TINFO_LATE_COL 0x10000000 /* Late Collision Occured */ +#define TINFO_LATE_COL 0x10000000 /* Late Collision Occurred */ #define TINFO_UNDERRUN 0x20000000 /* Transmit Underrun */ #define TINFO_NO_DESCR 0x40000000 /* No new Descriptor available */ -#define TINFO_ERR 0x80000000 /* Error Occured (OR of all errors) */ +#define TINFO_ERR 0x80000000 /* Error Occurred (OR of all errors) */ /* ENET Device Revision ID */ #define OLD_EMAC_MODULE_ID 0x39022000 /* Rev. ID for first rev '-' */ @@ -303,7 +303,7 @@ typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; #define PHY_REG_IDR1 0x02 /* PHY Identifier 1 */ #define PHY_REG_IDR2 0x03 /* PHY Identifier 2 */ #define PHY_REG_ANAR 0x04 /* Auto-Negotiation Advertisement */ -#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Abitily */ +#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Ability */ #define PHY_REG_ANER 0x06 /* Auto-Neg. Expansion Register */ #define PHY_REG_ANNPTR 0x07 /* Auto-Neg. Next Page TX */ @@ -565,8 +565,8 @@ void ethernet_free() { // if(TxProduceIndex == TxConsumeIndex) buffer array is empty // if(TxProduceIndex == TxConsumeIndex - 1) buffer is full, should not fill -// TxProduceIndex - The buffer that will/is being fileld by driver, s/w increment -// TxConsumeIndex - The buffer that will/is beign sent by hardware +// TxProduceIndex - The buffer that will be / is being fileld by driver, s/w increment +// TxConsumeIndex - The buffer that will be / is being sent by hardware int ethernet_write(const char *data, int slen) { @@ -676,22 +676,22 @@ int ethernet_send() { #endif } -// RxConsmeIndex - The index of buffer the driver will/is reading from. Driver should inc once read -// RxProduceIndex - The index of buffer that will/is being filled by MAC. H/w will inc once rxd +// RxConsmeIndex - The index of buffer the driver will read / is reading from. Driver should inc once read +// RxProduceIndex - The index of buffer that will be / is being filled by MAC. H/w will inc once rxd // // if(RxConsumeIndex == RxProduceIndex) buffer array is empty // if(RxConsumeIndex == RxProduceIndex + 1) buffer array is full -// 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. // Returns size of packet, else 0 if nothing to receive // We read from RxConsumeIndex from position rx_consume_offset -// if rx_consume_offset < 0, then we have not recieved the RxConsumeIndex packet for reading +// if rx_consume_offset < 0, then we have not received the RxConsumeIndex packet for reading // rx_consume_offset = -1 // no frame // rx_consume_offset = 0 // start of frame -// Assumption: A fragment should alway be a whole frame +// Assumption: A fragment should always be a whole frame int ethernet_receive() { #if NEW_LOGIC @@ -747,11 +747,11 @@ int ethernet_receive() { #endif } -// Read from an recevied ethernet packet. -// After receive returnd a number bigger than 0 it is +// Read from an received ethernet packet. +// After receive returned a number bigger than 0 it is // possible to read bytes from this packet. // Read will write up to size bytes into data. -// It is possible to use read multible times. +// It is possible to use read multiple times. // Each time read will start reading after the last read byte before. int ethernet_read(char *data, int dlen) { diff --git a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c index 64ebe3cc1c..5093dfc6ea 100644 --- a/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c @@ -210,7 +210,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { int count, status; diff --git a/targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c index b947155941..6845904c69 100644 --- a/targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c +++ b/targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c @@ -148,7 +148,7 @@ typedef struct TX_DESC_TypeDef TX_DESC_TypeDef; #define PHY_REG_IDR1 0x02 /* PHY Identifier 1 */ #define PHY_REG_IDR2 0x03 /* PHY Identifier 2 */ #define PHY_REG_ANAR 0x04 /* Auto-Negotiation Advertisement */ -#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Abitily */ +#define PHY_REG_ANLPAR 0x05 /* Auto-Neg. Link Partner Ability */ #define PHY_REG_ANER 0x06 /* Auto-Neg. Expansion Register */ #define PHY_REG_ANNPTR 0x07 /* Auto-Neg. Next Page TX */ diff --git a/targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c index 0e26102c91..fe1791fbc4 100644 --- a/targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c @@ -205,7 +205,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { diff --git a/targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c index 916242f3bd..df5979754a 100644 --- a/targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c @@ -151,7 +151,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that //New version WH, Tested OK for Start and Repeated Start diff --git a/targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c index 91044d4ab3..a8d662da33 100644 --- a/targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c +++ b/targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c @@ -242,7 +242,7 @@ void i2c_frequency(i2c_t *obj, int hz) { // 2) on error, we use the standard error mechanisms to report/debug // // Therefore an I2C transaction should always complete. If it doesn't it is usually -// because something is setup wrong (e.g. wiring), and we don't need to programatically +// because something is setup wrong (e.g. wiring), and we don't need to programmatically // check for that int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { int count, status; diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_mcan.h b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_mcan.h index 07c17b8d98..36f33a526a 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_mcan.h +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_mcan.h @@ -548,7 +548,7 @@ void MCAN_SetDataTimingConfig(CAN_Type *base, const mcan_timing_config_t *config * @brief Configures an MCAN receive fifo 0 buffer. * * This function sets start address, element size, watermark, operation mode - * and datafield size of the recieve fifo 0. + * and datafield size of the receive fifo 0. * * @param base MCAN peripheral base address. * @param config The receive fifo 0 configuration structure. @@ -559,7 +559,7 @@ void MCAN_SetRxFifo0Config(CAN_Type *base, const mcan_rx_fifo_config_t *config); * @brief Configures an MCAN receive fifo 1 buffer. * * This function sets start address, element size, watermark, operation mode - * and datafield size of the recieve fifo 1. + * and datafield size of the receive fifo 1. * * @param base MCAN peripheral base address. * @param config The receive fifo 1 configuration structure. @@ -569,7 +569,7 @@ void MCAN_SetRxFifo1Config(CAN_Type *base, const mcan_rx_fifo_config_t *config); /*! * @brief Configures an MCAN receive buffer. * - * This function sets start address and datafield size of the recieve buffer. + * This function sets start address and datafield size of the receive buffer. * * @param base MCAN peripheral base address. * @param config The receive buffer configuration structure. diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_sdif.h b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_sdif.h index e2602c6211..ece101ad2e 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_sdif.h +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/drivers/fsl_sdif.h @@ -317,7 +317,7 @@ typedef struct _sdif_data size_t blockSize; /*!< Block size, take care when config this parameter */ uint32_t blockCount; /*!< Block count */ - uint32_t *rxData; /*!< data buffer to recieve */ + uint32_t *rxData; /*!< data buffer to receive */ const uint32_t *txData; /*!< data buffer to transfer */ } sdif_data_t; @@ -335,7 +335,7 @@ typedef struct _sdif_command uint32_t responseType; /*!< Command response type */ uint32_t flags; /*!< Cmd flags */ uint32_t responseErrorFlags; /*!< response error flags, need to check the flags when - recieve the cmd response */ + receive the cmd response */ } sdif_command_t; /*! @brief Transfer state */ diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_adc.h b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_adc.h index e5b6b8c16f..2f1871ba7d 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_adc.h +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_adc.h @@ -52,7 +52,7 @@ typedef enum _adc_status_flags kADC_ConversionActiveFlag = ADC_GS_ADACT_MASK, /*!< Conversion is active,not support w1c. */ kADC_CalibrationFailedFlag = ADC_GS_CALF_MASK, /*!< Calibration is failed,support w1c. */ kADC_AsynchronousWakeupInterruptFlag = - ADC_GS_AWKST_MASK, /*!< Asynchronous wakeup interrupt occured, support w1c. */ + ADC_GS_AWKST_MASK, /*!< Asynchronous wakeup interrupt occurred, support w1c. */ } adc_status_flags_t; /*! diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_sai.c b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_sai.c index 31fd061e4c..6e6a5e30ce 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_sai.c +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_sai.c @@ -37,7 +37,7 @@ enum _sai_transfer_state { kSAI_Busy = 0x0U, /*!< SAI is busy */ kSAI_Idle, /*!< Transfer is done. */ - kSAI_Error /*!< Transfer error occured. */ + kSAI_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for sai tx interrupt handler. */ diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_spdif.c b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_spdif.c index b0e70c0358..31f7691b72 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_spdif.c +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_spdif.c @@ -37,7 +37,7 @@ enum _spdif_transfer_state { kSPDIF_Busy = 0x0U, /*!< SPDIF is busy */ kSPDIF_Idle, /*!< Transfer is done. */ - kSPDIF_Error /*!< Transfer error occured. */ + kSPDIF_Error /*!< Transfer error occurred. */ }; /*! @brief Typedef for spdif tx interrupt handler. */ diff --git a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_trng.c b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_trng.c index 0aafb78d8e..46190dc159 100644 --- a/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_trng.c +++ b/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/drivers/fsl_trng.c @@ -1176,7 +1176,7 @@ typedef enum _trng_statistical_check * TRNG access mode in the SA-TRNG Miscellaneous Control Register. * * Values: - * - 0b0 - Programability of registers controlled only by the RNG Miscellaneous + * - 0b0 - Programmability of registers controlled only by the RNG Miscellaneous * Control Register's access mode bit. * - 0b1 - Overides RNG Miscellaneous Control Register access mode and prevents * TRNG register programming. diff --git a/targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h index 0f6ab4489d..61a08ec6f3 100644 --- a/targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h +++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h @@ -26,7 +26,7 @@ * * @details * The character driver is intended for devices that allow read and write - * operations with "streams" of data, such as UART devices, SPI or I2c, etc. + * operations with "streams" of data, such as UART devices, SPI or I2C, etc. * * The character driver derives from the generic driver template (see driver.h). * It does so by including an element of the generic driver_t type. diff --git a/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c index 8ae4a9b935..593ddf48a7 100644 --- a/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c +++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c @@ -145,7 +145,7 @@ int32_t fI2cStop(i2c_t *obj) if (obj->membase->STATUS.WORD & (I2C_STATUS_CMD_FIFO_FULL_BIT | I2C_STATUS_CMD_FIFO_OFL_BIT | I2C_STATUS_BUS_ERR_BIT)) { - /* I2c error occured */ + /* I2C error occurred */ return I2C_ERROR_BUS_BUSY; } return I2C_API_STATUS_SUCCESS; @@ -164,7 +164,7 @@ int32_t fI2cReadB(i2c_t *obj, char *buf, int len) SEND_COMMAND(I2C_CMD_RDAT8); while(!RD_DATA_READY) { if (I2C_BUS_ERR_CHECK) { - /* Bus error occured */ + /* Bus error occurred */ return I2C_ERROR_BUS_BUSY; } } diff --git a/targets/TARGET_RENESAS/TARGET_RZ_A1XX/i2c_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1XX/i2c_api.c index 227ac68f4e..ac37ba5cb5 100644 --- a/targets/TARGET_RENESAS/TARGET_RZ_A1XX/i2c_api.c +++ b/targets/TARGET_RENESAS/TARGET_RZ_A1XX/i2c_api.c @@ -442,7 +442,7 @@ int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { i2c_set_err_noslave(obj); return I2C_ERROR_NO_SLAVE; } - /* Recieve the data */ + /* Receive the data */ if (count == (length - 2)) { value = i2c_do_read(obj, 1); } else if ((length >= 3) && (count == (length - 3))) { diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.h b/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.h index f221efc744..8b25da958a 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.h +++ b/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.h @@ -125,21 +125,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(); diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep/wireless.h b/targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep/wireless.h index ac988590c4..660258bd4d 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep/wireless.h +++ b/targets/TARGET_Realtek/TARGET_AMEBA/sdk/common/drivers/wlan/realtek/src/osdep/wireless.h @@ -145,7 +145,7 @@ * * V11 to V12 * ---------- - * - Add SIOCSIWSTATS to get /proc/net/wireless programatically + * - Add SIOCSIWSTATS to get /proc/net/wireless programmatically * - Add DEV PRIVATE IOCTL to avoid collisions in SIOCDEVPRIVATE space * - Add new statistics (frag, retry, beacon) * - Add average quality (for user space calibration) diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/sdk/soc/realtek/8195a/fwlib/rtl8195a/rtl8195a_spi_flash.h b/targets/TARGET_Realtek/TARGET_AMEBA/sdk/soc/realtek/8195a/fwlib/rtl8195a/rtl8195a_spi_flash.h index 315db89171..183f8c20f9 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/sdk/soc/realtek/8195a/fwlib/rtl8195a/rtl8195a_spi_flash.h +++ b/targets/TARGET_Realtek/TARGET_AMEBA/sdk/soc/realtek/8195a/fwlib/rtl8195a/rtl8195a_spi_flash.h @@ -1000,7 +1000,7 @@ #define REG_SPIC_FLUSH_FIFO 0x0128//O VOID SpicInitRtl8195A(u8 InitBaudRate, u8 SpicBitMode); // spi-flash controller initialization -VOID SpicRxCmdRtl8195A(u8); // recieve command +VOID SpicRxCmdRtl8195A(u8); // receive command VOID SpicTxCmdRtl8195A(u8 cmd, SPIC_INIT_PARA SpicInitPara); // transfer command u8 SpicGetFlashStatusRtl8195A(SPIC_INIT_PARA SpicInitPara); // RDSR, read spi-flash status register VOID SpicSetFlashStatusRtl8195A(u32 data, SPIC_INIT_PARA SpicInitPara); // WRSR, write spi-flash status register diff --git a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_flash.c b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_flash.c index 167bb4bb66..fa656f6a09 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_flash.c +++ b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_flash.c @@ -170,7 +170,7 @@ extern void FLASH_PageErase(uint32_t PageAddress); * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * - * @note FLASH should be previously erased before new programmation (only exception to this + * @note FLASH should be previously erased before new programming (only exception to this * is when 0x0000 is programmed) * * @param TypeProgram Indicate the way to program at a specified address. @@ -223,7 +223,7 @@ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint /* If the program operation is completed, disable the PG Bit */ CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - /* In case of error, stop programation procedure */ + /* In case of error, stop programming procedure */ if (status != HAL_OK) { break; diff --git a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_i2s.c index d0fe3dada4..ec0de43d9c 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_i2s.c @@ -1040,7 +1040,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) return; } - /* I2S Overrun error interrupt occured ---------------------------------*/ + /* I2S Overrun error interrupt occurred --------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -1054,7 +1054,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) HAL_I2S_ErrorCallback(hi2s); } - /* I2S Underrun error interrupt occured --------------------------------*/ + /* I2S Underrun error interrupt occurred -------------------------------*/ if(((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_tsc.c b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_tsc.c index eaf1697a91..2297a402a0 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_tsc.c +++ b/targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_tsc.c @@ -703,14 +703,14 @@ void HAL_TSC_IRQHandler(TSC_HandleTypeDef* htsc) /* Check the parameters */ assert_param(IS_TSC_ALL_INSTANCE(htsc->Instance)); - /* Check if the end of acquisition occured */ + /* Check if the end of acquisition occurred */ if (__HAL_TSC_GET_FLAG(htsc, TSC_FLAG_EOA) != RESET) { /* Clear EOA flag */ __HAL_TSC_CLEAR_FLAG(htsc, TSC_FLAG_EOA); } - /* Check if max count error occured */ + /* Check if max count error occurred */ if (__HAL_TSC_GET_FLAG(htsc, TSC_FLAG_MCE) != RESET) { /* Clear MCE flag */ diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_clock.c index 3aa2e4c37b..57fc036b67 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_clock.c @@ -143,7 +143,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/system_clock.c index 40ccdaf31b..7f53e68078 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/system_clock.c @@ -142,7 +142,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_flash.c b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_flash.c index 2bbb626f14..4d83c9a258 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_flash.c +++ b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_flash.c @@ -173,7 +173,7 @@ extern void FLASH_PageErase(uint32_t PageAddress); * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * - * @note FLASH should be previously erased before new programmation (only exception to this + * @note FLASH should be previously erased before new programming (only exception to this * is when 0x0000 is programmed) * * @param TypeProgram: Indicate the way to program at a specified address. @@ -253,7 +253,7 @@ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG); } #endif /* FLASH_BANK2_END */ - /* In case of error, stop programation procedure */ + /* In case of error, stop programming procedure */ if (status != HAL_OK) { break; diff --git a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_i2s.c index 332717572f..828cd30823 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_i2s.c @@ -1363,7 +1363,7 @@ static void I2S_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_Receive_IT(hi2s); } - /* I2S Overrun error interrupt occured -------------------------------------*/ + /* I2S Overrun error interrupt occurred -------------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_ll_i2c.h b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_ll_i2c.h index 98081ddc45..6c3810db2a 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_ll_i2c.h +++ b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_ll_i2c.h @@ -1203,7 +1203,7 @@ __STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR(I2C_TypeDef *I2Cx) /** * @brief Indicate the status of 10-bit header sent (master mode). - * @note RESET: When no ADD10 event occured. + * @note RESET: When no ADD10 event occurred. * SET: When the master has sent the first address byte (header). * @rmtoll SR1 ADD10 LL_I2C_IsActiveFlag_ADD10 * @param I2Cx I2C Instance. diff --git a/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_ll_i2c.h b/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_ll_i2c.h index a3b261e85c..514829d48c 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_ll_i2c.h +++ b/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_ll_i2c.h @@ -1203,7 +1203,7 @@ __STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR(I2C_TypeDef *I2Cx) /** * @brief Indicate the status of 10-bit header sent (master mode). - * @note RESET: When no ADD10 event occured. + * @note RESET: When no ADD10 event occurred. * SET: When the master has sent the first address byte (header). * @rmtoll SR1 ADD10 LL_I2C_IsActiveFlag_ADD10 * @param I2Cx I2C Instance. diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_flash.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_flash.c index eaebd5682b..98908e1ee3 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_flash.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_flash.c @@ -173,7 +173,7 @@ extern void FLASH_PageErase(uint32_t PageAddress); * @note If an erase and a program operations are requested simultaneously, * the erase operation is performed before the program one. * - * @note FLASH should be previously erased before new programmation (only exception to this + * @note FLASH should be previously erased before new programming (only exception to this * is when 0x0000 is programmed) * * @param TypeProgram Indicate the way to program at a specified address. @@ -226,7 +226,7 @@ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint /* If the program operation is completed, disable the PG Bit */ CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - /* In case of error, stop programation procedure */ + /* In case of error, stop programming procedure */ if (status != HAL_OK) { break; diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_hrtim.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_hrtim.c index 497a85c936..7549d7c58f 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_hrtim.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_hrtim.c @@ -5978,7 +5978,7 @@ void HAL_HRTIM_IRQHandler(HRTIM_HandleTypeDef * hhrtim, } /** - * @brief Callback function invoked when a fault 1 interrupt occured + * @brief Callback function invoked when a fault 1 interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None * @retval None */ @@ -5993,7 +5993,7 @@ __weak void HAL_HRTIM_Fault1Callback(HRTIM_HandleTypeDef * hhrtim) } /** - * @brief Callback function invoked when a fault 2 interrupt occured + * @brief Callback function invoked when a fault 2 interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None */ @@ -6008,7 +6008,7 @@ __weak void HAL_HRTIM_Fault2Callback(HRTIM_HandleTypeDef * hhrtim) } /** - * @brief Callback function invoked when a fault 3 interrupt occured + * @brief Callback function invoked when a fault 3 interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None */ @@ -6023,7 +6023,7 @@ __weak void HAL_HRTIM_Fault3Callback(HRTIM_HandleTypeDef * hhrtim) } /** - * @brief Callback function invoked when a fault 4 interrupt occured + * @brief Callback function invoked when a fault 4 interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None */ @@ -6038,7 +6038,7 @@ __weak void HAL_HRTIM_Fault4Callback(HRTIM_HandleTypeDef * hhrtim) } /** - * @brief Callback function invoked when a fault 5 interrupt occured + * @brief Callback function invoked when a fault 5 interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None */ @@ -6053,7 +6053,7 @@ __weak void HAL_HRTIM_Fault5Callback(HRTIM_HandleTypeDef * hhrtim) } /** - * @brief Callback function invoked when a system fault interrupt occured + * @brief Callback function invoked when a system fault interrupt occurred * @param hhrtim: pointer to HAL HRTIM handle * @retval None */ diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s.c index 0a9abba63f..d1844d77ba 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s.c @@ -945,7 +945,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_Receive_IT(hi2s); } - /* I2S Overrun error interrupt occured -------------------------------------*/ + /* I2S Overrun error interrupt occurred ------------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -967,7 +967,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_Transmit_IT(hi2s); } - /* I2S Underrun error interrupt occured ------------------------------------*/ + /* I2S Underrun error interrupt occurred -----------------------------------*/ if(((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s_ex.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s_ex.c index 37a3adbe27..338b9acd7a 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s_ex.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_i2s_ex.c @@ -435,7 +435,7 @@ void HAL_I2S_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_FullDuplexRx_IT(hi2s, I2S_USE_I2SEXT); } - /* I2Sext Overrun error interrupt occured --------------------------------*/ + /* I2Sext Overrun error interrupt occurred -------------------------------*/ if(((i2sextsr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2SEXT_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -452,7 +452,7 @@ void HAL_I2S_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) HAL_I2S_ErrorCallback(hi2s); } - /* I2S Underrun error interrupt occured ----------------------------------*/ + /* I2S Underrun error interrupt occurred ---------------------------------*/ if(((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ @@ -488,7 +488,7 @@ void HAL_I2S_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_FullDuplexRx_IT(hi2s, I2S_USE_I2S); } - /* I2S Overrun error interrupt occured -------------------------------------*/ + /* I2S Overrun error interrupt occurred ------------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -505,7 +505,7 @@ void HAL_I2S_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) HAL_I2S_ErrorCallback(hi2s); } - /* I2Sext Underrun error interrupt occured -------------------------------*/ + /* I2Sext Underrun error interrupt occurred ------------------------------*/ if(((i2sextsr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2SEXT_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_irda.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_irda.c index 77ba4ecd78..0e4df04945 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_irda.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_irda.c @@ -1811,7 +1811,7 @@ static HAL_StatusTypeDef IRDA_CheckIdleState(IRDA_HandleTypeDef *hirda) /* Wait until REACK flag is set */ if(IRDA_WaitOnFlagUntilTimeout(hirda, USART_ISR_REACK, RESET, tickstart, IRDA_TEACK_REACK_TIMEOUT) != HAL_OK) { - /* Timeout Occured */ + /* Timeout Occurred */ return HAL_TIMEOUT; } } diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_uart.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_uart.c index f691e7f2f8..20f6c81007 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_uart.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_uart.c @@ -2296,7 +2296,7 @@ HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) /* Wait until TEACK flag is set */ if(UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) { - /* Timeout Occured */ + /* Timeout Occurred */ return HAL_TIMEOUT; } } @@ -2306,7 +2306,7 @@ HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) /* Wait until REACK flag is set */ if(UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) { - /* Timeout Occured */ + /* Timeout Occurred */ return HAL_TIMEOUT; } } diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_usart.c b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_usart.c index a2caa0ddc4..9c2afcc7ee 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_usart.c +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_usart.c @@ -2128,7 +2128,7 @@ static HAL_StatusTypeDef USART_CheckIdleState(USART_HandleTypeDef *husart) /* Wait until TEACK flag is set */ if(USART_WaitOnFlagUntilTimeout(husart, USART_ISR_TEACK, RESET, tickstart, USART_TEACK_REACK_TIMEOUT) != HAL_OK) { - /* Timeout Occured */ + /* Timeout Occurred */ return HAL_TIMEOUT; } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/system_clock.c index 6ae08aac48..f1f150016f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/system_clock.c @@ -124,7 +124,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_clock.c index 6ae08aac48..f1f150016f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_clock.c @@ -124,7 +124,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/system_clock.c index 13d92ef57a..7d64108a6a 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/system_clock.c @@ -130,7 +130,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/system_clock.c index f42278ce2c..c96b51c08c 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/system_clock.c @@ -121,7 +121,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_ARCH_MAX/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_ARCH_MAX/system_clock.c index 9c33be421e..425580bc01 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_ARCH_MAX/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_ARCH_MAX/system_clock.c @@ -121,7 +121,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/stm32f407xx.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/stm32f407xx.h index 23c09610e9..abb008c413 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/stm32f407xx.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/stm32f407xx.h @@ -13604,7 +13604,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_ELMO_F411RE/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_ELMO_F411RE/system_clock.c index bffa88a663..698f92ec57 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_ELMO_F411RE/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_ELMO_F411RE/system_clock.c @@ -125,7 +125,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/stm32f429xx.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/stm32f429xx.h index 5feb7667c5..1bc9d75b7d 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/stm32f429xx.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/stm32f429xx.h @@ -15156,7 +15156,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/stm32f437xx.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/stm32f437xx.h index a7df3124bc..9302e9b082 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/stm32f437xx.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/stm32f437xx.h @@ -15096,7 +15096,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h index 24be80d57a..f01a8b1f38 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h @@ -115,7 +115,7 @@ 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(); @@ -129,7 +129,7 @@ public: /** 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(); diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/stm32f439xx.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/stm32f439xx.h index 16eb383e44..80634c63ee 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/stm32f439xx.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/stm32f439xx.h @@ -15444,7 +15444,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_B96B_F446VE/system_clock.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_B96B_F446VE/system_clock.c index ed57a5fa5d..6d1bdc97ad 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_B96B_F446VE/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_B96B_F446VE/system_clock.c @@ -124,7 +124,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/stm32f469xx.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/stm32f469xx.h index d054b8fb07..b8893dae93 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/stm32f469xx.h +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/stm32f469xx.h @@ -18175,7 +18175,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s.c index f80478f6ad..606c22dc8b 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s.c @@ -1443,7 +1443,7 @@ static void I2S_IRQHandler(I2S_HandleTypeDef *hi2s) I2S_Receive_IT(hi2s); } - /* I2S Overrun error interrupt occured -------------------------------------*/ + /* I2S Overrun error interrupt occurred ------------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s_ex.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s_ex.c index aae1ac401a..978c7ea753 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s_ex.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_i2s_ex.c @@ -784,7 +784,7 @@ void HAL_I2SEx_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) I2SEx_FullDuplexRx_IT(hi2s, I2S_USE_I2SEXT); } - /* I2Sext Overrun error interrupt occured --------------------------------*/ + /* I2Sext Overrun error interrupt occurred -------------------------------*/ if(((i2sextsr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2SEXT_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -804,7 +804,7 @@ void HAL_I2SEx_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) HAL_I2S_ErrorCallback(hi2s); } - /* I2S Underrun error interrupt occured ----------------------------------*/ + /* I2S Underrun error interrupt occurred ---------------------------------*/ if(((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ @@ -843,7 +843,7 @@ void HAL_I2SEx_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) I2SEx_FullDuplexRx_IT(hi2s, I2S_USE_I2S); } - /* I2S Overrun error interrupt occured -------------------------------------*/ + /* I2S Overrun error interrupt occurred ------------------------------------*/ if(((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable RXNE and ERR interrupt */ @@ -860,7 +860,7 @@ void HAL_I2SEx_FullDuplex_IRQHandler(I2S_HandleTypeDef *hi2s) HAL_I2S_ErrorCallback(hi2s); } - /* I2Sext Underrun error interrupt occured -------------------------------*/ + /* I2Sext Underrun error interrupt occurred ------------------------------*/ if(((i2sextsr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2SEXT_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET)) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_sai.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_sai.c index 0fba5e62c1..6d8daf6933 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_sai.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_sai.c @@ -1310,7 +1310,7 @@ void HAL_SAI_IRQHandler(SAI_HandleTypeDef *hsai) uint32_t cr1config = hsai->Instance->CR1; uint32_t tmperror; - /* SAI Fifo request interrupt occured ------------------------------------*/ + /* SAI Fifo request interrupt occurred -----------------------------------*/ if(((itflags & SAI_xSR_FREQ) == SAI_xSR_FREQ) && ((itsources & SAI_IT_FREQ) == SAI_IT_FREQ)) { hsai->InterruptServiceRoutine(hsai); diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_i2c.h b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_i2c.h index 69f44ce05b..1db3dba380 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_i2c.h +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_i2c.h @@ -1309,7 +1309,7 @@ __STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR(I2C_TypeDef *I2Cx) /** * @brief Indicate the status of 10-bit header sent (master mode). - * @note RESET: When no ADD10 event occured. + * @note RESET: When no ADD10 event occurred. * SET: When the master has sent the first address byte (header). * @rmtoll SR1 ADD10 LL_I2C_IsActiveFlag_ADD10 * @param I2Cx I2C Instance. diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_lptim.h b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_lptim.h index 6ca83de287..f5a79948dc 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_lptim.h +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_ll_lptim.h @@ -976,7 +976,7 @@ __STATIC_INLINE void LL_LPTIM_ClearFLAG_ARRM(LPTIM_TypeDef *LPTIMx) } /** - * @brief Inform application whether a autoreload match interrupt has occured. + * @brief Inform application whether a autoreload match interrupt has occurred. * @rmtoll ISR ARRM LL_LPTIM_IsActiveFlag_ARRM * @param LPTIMx Low-Power Timer instance * @retval State of bit (1 or 0). diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/device/stm32f746xx.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/device/stm32f746xx.h index ca9deeebf4..4a6350c6f9 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/device/stm32f746xx.h +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/device/stm32f746xx.h @@ -15398,7 +15398,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/stm32f756xx.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/stm32f756xx.h index 1a19a08cfb..6c29b80fa9 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/stm32f756xx.h +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/stm32f756xx.h @@ -15685,7 +15685,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/stm32f767xx.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/stm32f767xx.h index 4e7911cf69..083f43e419 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/stm32f767xx.h +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/stm32f767xx.h @@ -16074,7 +16074,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/stm32f769xx.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/stm32f769xx.h index 5cde08e3a0..59e29e1b0c 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/stm32f769xx.h +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/stm32f769xx.h @@ -16169,7 +16169,7 @@ typedef struct #define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */ #define ETH_DMASR_RPS_Queuing_Pos (17U) #define ETH_DMASR_RPS_Queuing_Msk (0x7U << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */ -#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */ +#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */ #define ETH_DMASR_NIS_Pos (16U) #define ETH_DMASR_NIS_Msk (0x1U << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */ #define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */ diff --git a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_mdios.c b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_mdios.c index acc8a6bbc4..b5e8263498 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_mdios.c +++ b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_mdios.c @@ -577,7 +577,7 @@ __weak void HAL_MDIOS_WakeUpCallback(MDIOS_HandleTypeDef *hmdios) [..] This subsection provides a set of functions allowing to control the MDIOS. (+) HAL_MDIOS_GetState() API, helpful to check in run-time the state. - (+) HAL_MDIOS_GetError() API, returns the errors occured during data transfer. + (+) HAL_MDIOS_GetError() API, returns the errors occurred during data transfer. @endverbatim * @{ @@ -586,7 +586,7 @@ __weak void HAL_MDIOS_WakeUpCallback(MDIOS_HandleTypeDef *hmdios) /** * @brief Gets MDIOS error flags * @param hmdios mdios handle - * @retval bit map of occured errors + * @retval bit map of occurred errors */ uint32_t HAL_MDIOS_GetError(MDIOS_HandleTypeDef *hmdios) { diff --git a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_sai.c b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_sai.c index 15cf097456..5b9f5e4730 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_sai.c +++ b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_sai.c @@ -1358,7 +1358,7 @@ void HAL_SAI_IRQHandler(SAI_HandleTypeDef *hsai) uint32_t cr1config = hsai->Instance->CR1; uint32_t tmperror; - /* SAI Fifo request interrupt occured ------------------------------------*/ + /* SAI Fifo request interrupt occurred -----------------------------------*/ if(((itflags & SAI_xSR_FREQ) == SAI_xSR_FREQ) && ((itsources & SAI_IT_FREQ) == SAI_IT_FREQ)) { hsai->InterruptServiceRoutine(hsai); diff --git a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_lptim.h b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_lptim.h index 007656613e..c69eb8b4a7 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_lptim.h +++ b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_lptim.h @@ -981,7 +981,7 @@ __STATIC_INLINE void LL_LPTIM_ClearFLAG_ARRM(LPTIM_TypeDef *LPTIMx) } /** - * @brief Inform application whether a autoreload match interrupt has occured. + * @brief Inform application whether a autoreload match interrupt has occurred. * @rmtoll ISR ARRM LL_LPTIM_IsActiveFlag_ARRM * @param LPTIMx Low-Power Timer instance * @retval State of bit (1 or 0). diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_i2s.c index c1c3fad6fc..d9d0873531 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_i2s.c @@ -1069,7 +1069,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) /* I2S interrupt error -------------------------------------------------*/ if(__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET) { - /* I2S Overrun error interrupt occured ---------------------------------*/ + /* I2S Overrun error interrupt occurred --------------------------------*/ if((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) { /* Disable RXNE and ERR interrupt */ @@ -1079,7 +1079,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) SET_BIT(hi2s->ErrorCode, HAL_I2S_ERROR_OVR); } - /* I2S Underrun error interrupt occured --------------------------------*/ + /* I2S Underrun error interrupt occurred -------------------------------*/ if((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_irda.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_irda.c index 06bd6981c2..ad0fd57f14 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_irda.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_irda.c @@ -896,7 +896,7 @@ HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda) */ void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda) { - /* IRDA parity error interrupt occurred -------------------------------------*/ + /* IRDA parity error interrupt occurred ------------------------------------*/ if((__HAL_IRDA_GET_IT(hirda, IRDA_IT_PE) != RESET) && (__HAL_IRDA_GET_IT_SOURCE(hirda, IRDA_IT_PE) != RESET)) { __HAL_IRDA_CLEAR_PEFLAG(hirda); @@ -906,7 +906,7 @@ void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda) hirda->State = HAL_IRDA_STATE_READY; } - /* IRDA frame error interrupt occured --------------------------------------*/ + /* IRDA frame error interrupt occurred -------------------------------------*/ if((__HAL_IRDA_GET_IT(hirda, IRDA_IT_FE) != RESET) && (__HAL_IRDA_GET_IT_SOURCE(hirda, IRDA_IT_ERR) != RESET)) { __HAL_IRDA_CLEAR_FEFLAG(hirda); @@ -916,7 +916,7 @@ void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda) hirda->State = HAL_IRDA_STATE_READY; } - /* IRDA noise error interrupt occured --------------------------------------*/ + /* IRDA noise error interrupt occurred -------------------------------------*/ if((__HAL_IRDA_GET_IT(hirda, IRDA_IT_NE) != RESET) && (__HAL_IRDA_GET_IT_SOURCE(hirda, IRDA_IT_ERR) != RESET)) { __HAL_IRDA_CLEAR_NEFLAG(hirda); @@ -926,7 +926,7 @@ void HAL_IRDA_IRQHandler(IRDA_HandleTypeDef *hirda) hirda->State = HAL_IRDA_STATE_READY; } - /* IRDA Over-Run interrupt occured -----------------------------------------*/ + /* IRDA Over-Run interrupt occurred -----------------------------------------*/ if((__HAL_IRDA_GET_IT(hirda, IRDA_IT_ORE) != RESET) && (__HAL_IRDA_GET_IT_SOURCE(hirda, IRDA_IT_ERR) != RESET)) { __HAL_IRDA_CLEAR_OREFLAG(hirda); diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_smartcard.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_smartcard.c index a33f92310c..492bff6bd2 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_smartcard.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_smartcard.c @@ -724,7 +724,7 @@ void HAL_SMARTCARD_IRQHandler(SMARTCARD_HandleTypeDef *hsc) hsc->State = HAL_SMARTCARD_STATE_READY; } - /* SMARTCARD frame error interrupt occured ---------------------------------*/ + /* SMARTCARD frame error interrupt occurred --------------------------------*/ if((__HAL_SMARTCARD_GET_IT(hsc, SMARTCARD_IT_FE) != RESET) && (__HAL_SMARTCARD_GET_IT_SOURCE(hsc, SMARTCARD_IT_ERR) != RESET)) { __HAL_SMARTCARD_CLEAR_FEFLAG(hsc); @@ -733,7 +733,7 @@ void HAL_SMARTCARD_IRQHandler(SMARTCARD_HandleTypeDef *hsc) hsc->State = HAL_SMARTCARD_STATE_READY; } - /* SMARTCARD noise error interrupt occured ---------------------------------*/ + /* SMARTCARD noise error interrupt occurred --------------------------------*/ if((__HAL_SMARTCARD_GET_IT(hsc, SMARTCARD_IT_NE) != RESET) && (__HAL_SMARTCARD_GET_IT_SOURCE(hsc, SMARTCARD_IT_ERR) != RESET)) { __HAL_SMARTCARD_CLEAR_NEFLAG(hsc); @@ -742,7 +742,7 @@ void HAL_SMARTCARD_IRQHandler(SMARTCARD_HandleTypeDef *hsc) hsc->State = HAL_SMARTCARD_STATE_READY; } - /* SMARTCARD Over-Run interrupt occured ------------------------------------*/ + /* SMARTCARD Over-Run interrupt occurred -----------------------------------*/ if((__HAL_SMARTCARD_GET_IT(hsc, SMARTCARD_IT_ORE) != RESET) && (__HAL_SMARTCARD_GET_IT_SOURCE(hsc, SMARTCARD_IT_ERR) != RESET)) { __HAL_SMARTCARD_CLEAR_OREFLAG(hsc); @@ -751,7 +751,7 @@ void HAL_SMARTCARD_IRQHandler(SMARTCARD_HandleTypeDef *hsc) hsc->State = HAL_SMARTCARD_STATE_READY; } - /* SMARTCARD receiver timeout interrupt occured ----------------------------*/ + /* SMARTCARD receiver timeout interrupt occurred ---------------------------*/ if((__HAL_SMARTCARD_GET_IT(hsc, SMARTCARD_IT_RTO) != RESET) && (__HAL_SMARTCARD_GET_IT_SOURCE(hsc, SMARTCARD_IT_RTO) != RESET)) { __HAL_SMARTCARD_CLEAR_IT(hsc, SMARTCARD_CLEAR_RTOF); diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_tsc.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_tsc.c index daf265ddd3..fe51945c15 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_tsc.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_tsc.c @@ -709,14 +709,14 @@ void HAL_TSC_IRQHandler(TSC_HandleTypeDef* htsc) /* Check the parameters */ assert_param(IS_TSC_ALL_INSTANCE(htsc->Instance)); - /* Check if the end of acquisition occured */ + /* Check if the end of acquisition occurred */ if (__HAL_TSC_GET_FLAG(htsc, TSC_FLAG_EOA) != RESET) { /* Clear EOA flag */ __HAL_TSC_CLEAR_FLAG(htsc, TSC_FLAG_EOA); } - /* Check if max count error occured */ + /* Check if max count error occurred */ if (__HAL_TSC_GET_FLAG(htsc, TSC_FLAG_MCE) != RESET) { /* Clear MCE flag */ diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_uart.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_uart.c index 98470850f3..694e8baea0 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_uart.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_uart.c @@ -1083,7 +1083,7 @@ HAL_StatusTypeDef HAL_UART_DMAStop(UART_HandleTypeDef *huart) */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { - /* UART parity error interrupt occurred ------------------------------------*/ + /* UART parity error interrupt occurred -----------------------------------*/ if((__HAL_UART_GET_IT(huart, UART_IT_PE) != RESET) && (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_PE) != RESET)) { @@ -1095,7 +1095,7 @@ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) huart->RxState = HAL_UART_STATE_READY; } - /* UART frame error interrupt occured --------------------------------------*/ + /* UART frame error interrupt occurred -------------------------------------*/ if((__HAL_UART_GET_IT(huart, UART_IT_FE) != RESET) && (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_ERR) != RESET)) { __HAL_UART_CLEAR_IT(huart, UART_CLEAR_FEF); @@ -1106,7 +1106,7 @@ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) huart->RxState = HAL_UART_STATE_READY; } - /* UART noise error interrupt occured --------------------------------------*/ + /* UART noise error interrupt occurred -------------------------------------*/ if((__HAL_UART_GET_IT(huart, UART_IT_NE) != RESET) && (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_ERR) != RESET)) { __HAL_UART_CLEAR_IT(huart, UART_CLEAR_NEF); @@ -1117,7 +1117,7 @@ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) huart->RxState = HAL_UART_STATE_READY; } - /* UART Over-Run interrupt occurred -----------------------------------------*/ + /* UART Over-Run interrupt occurred ----------------------------------------*/ if((__HAL_UART_GET_IT(huart, UART_IT_ORE) != RESET) && (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_ERR) != RESET)) { __HAL_UART_CLEAR_IT(huart, UART_CLEAR_OREF); @@ -1128,7 +1128,7 @@ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) huart->RxState = HAL_UART_STATE_READY; } - /* Call UART Error Call back function if need be --------------------------*/ + /* Call UART Error Call back function if need be ---------------------------*/ if(huart->ErrorCode != HAL_UART_ERROR_NONE) { /* Set the UART state ready to be able to start again the process */ @@ -1138,7 +1138,7 @@ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) HAL_UART_ErrorCallback(huart); } - /* UART Wake Up interrupt occured ------------------------------------------*/ + /* UART Wake Up interrupt occurred -----------------------------------------*/ if((__HAL_UART_GET_IT(huart, UART_IT_WUF) != RESET) && (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_WUF) != RESET)) { __HAL_UART_CLEAR_IT(huart, UART_CLEAR_WUF); diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_usart.c b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_usart.c index 3fc35648d2..32e34e5fda 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_usart.c +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_usart.c @@ -1040,7 +1040,7 @@ HAL_StatusTypeDef HAL_USART_DMAStop(USART_HandleTypeDef *husart) void HAL_USART_IRQHandler(USART_HandleTypeDef *husart) { - /* USART parity error interrupt occured ------------------------------------*/ + /* USART parity error interrupt occurred ------------------------------------*/ if((__HAL_USART_GET_IT(husart, USART_IT_PE) != RESET) && (__HAL_USART_GET_IT_SOURCE(husart, USART_IT_PE) != RESET)) { __HAL_USART_CLEAR_PEFLAG(husart); @@ -1049,7 +1049,7 @@ void HAL_USART_IRQHandler(USART_HandleTypeDef *husart) husart->State = HAL_USART_STATE_READY; } - /* USART frame error interrupt occured -------------------------------------*/ + /* USART frame error interrupt occurred -------------------------------------*/ if((__HAL_USART_GET_IT(husart, USART_IT_FE) != RESET) && (__HAL_USART_GET_IT_SOURCE(husart, USART_IT_ERR) != RESET)) { __HAL_USART_CLEAR_FEFLAG(husart); @@ -1058,7 +1058,7 @@ void HAL_USART_IRQHandler(USART_HandleTypeDef *husart) husart->State = HAL_USART_STATE_READY; } - /* USART noise error interrupt occured -------------------------------------*/ + /* USART noise error interrupt occurred -------------------------------------*/ if((__HAL_USART_GET_IT(husart, USART_IT_NE) != RESET) && (__HAL_USART_GET_IT_SOURCE(husart, USART_IT_ERR) != RESET)) { __HAL_USART_CLEAR_NEFLAG(husart); @@ -1067,7 +1067,7 @@ void HAL_USART_IRQHandler(USART_HandleTypeDef *husart) husart->State = HAL_USART_STATE_READY; } - /* USART Over-Run interrupt occured ----------------------------------------*/ + /* USART Over-Run interrupt occurred ----------------------------------------*/ if((__HAL_USART_GET_IT(husart, USART_IT_ORE) != RESET) && (__HAL_USART_GET_IT_SOURCE(husart, USART_IT_ERR) != RESET)) { __HAL_USART_CLEAR_OREFLAG(husart); diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_lptim.h b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_lptim.h index 42c6916ca1..57c89976ab 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_lptim.h +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_lptim.h @@ -983,7 +983,7 @@ __STATIC_INLINE void LL_LPTIM_ClearFLAG_ARRM(LPTIM_TypeDef *LPTIMx) } /** - * @brief Inform application whether a autoreload match interrupt has occured. + * @brief Inform application whether a autoreload match interrupt has occurred. * @rmtoll ISR ARRM LL_LPTIM_IsActiveFlag_ARRM * @param LPTIMx Low-Power Timer instance * @retval State of bit (1 or 0). diff --git a/targets/TARGET_STM/TARGET_STM32L0/flash_api.c b/targets/TARGET_STM/TARGET_STM32L0/flash_api.c index bd4a411cb0..1a232bb2f5 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/flash_api.c +++ b/targets/TARGET_STM/TARGET_STM32L0/flash_api.c @@ -158,7 +158,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) { } uint32_t flash_get_page_size(const flash_t *obj) { - /* Page size is the minimum programable size, which 4 bytes */ + /* Page size is the minimum programmable size, which 4 bytes */ return 4; } diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/system_clock.c index d14cbc4bc6..944956c5da 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/system_clock.c @@ -117,7 +117,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/system_clock.c index 6d1889d50a..f776950cf6 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/system_clock.c @@ -133,7 +133,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/system_clock.c index df762686ea..d6cf4416dc 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/system_clock.c @@ -117,7 +117,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_clock.c index 6d1889d50a..f776950cf6 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_clock.c @@ -133,7 +133,7 @@ void SetSysClock(void) /* 3- If fail start with HSI clock */ if (SetSysClock_PLL_HSI() == 0) { while(1) { - // [TODO] Put something here to tell the user that a problem occured... + // [TODO] Put something here to tell the user that a problem occurred... } } } diff --git a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_flash_ex.c b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_flash_ex.c index 63d8b991c4..c8aa093cb7 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_flash_ex.c +++ b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_flash_ex.c @@ -1056,7 +1056,7 @@ static HAL_StatusTypeDef FLASH_OB_BORConfig(uint8_t OB_BOR) status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); } - /* Return the Option Byte BOR programmation Status */ + /* Return the Option Byte BOR programming Status */ return status; } diff --git a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_i2s.c b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_i2s.c index 9e4151e1a7..73f83e2e8b 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_i2s.c +++ b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_i2s.c @@ -1033,7 +1033,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) /* I2S interrupt error -------------------------------------------------*/ if(__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET) { - /* I2S Overrun error interrupt occured ---------------------------------*/ + /* I2S Overrun error interrupt occurred --------------------------------*/ if((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) { /* Disable RXNE and ERR interrupt */ @@ -1043,7 +1043,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) SET_BIT(hi2s->ErrorCode, HAL_I2S_ERROR_OVR); } - /* I2S Underrun error interrupt occured --------------------------------*/ + /* I2S Underrun error interrupt occurred -------------------------------*/ if((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) { /* Disable TXE and ERR interrupt */ @@ -1053,7 +1053,7 @@ void HAL_I2S_IRQHandler(I2S_HandleTypeDef *hi2s) SET_BIT(hi2s->ErrorCode, HAL_I2S_ERROR_UDR); } - /* I2S Frame format error interrupt occured --------------------------*/ + /* I2S Frame format error interrupt occurred --------------------------*/ if((i2ssr & I2S_FLAG_FRE) == I2S_FLAG_FRE) { /* Disable TXE and ERR interrupt */ diff --git a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_sd.c b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_sd.c index 31b144ac60..e45d6b1151 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_sd.c +++ b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_sd.c @@ -1781,7 +1781,7 @@ HAL_SD_ErrorTypedef HAL_SD_WideBusOperation_Config(SD_HandleTypeDef *hsd, uint32 } else { - /* An error occured while enabling/disabling the wide bus*/ + /* An error occurred while enabling/disabling the wide bus*/ } } else diff --git a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_ll_i2c.h b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_ll_i2c.h index dbe82c30be..84a2057411 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_ll_i2c.h +++ b/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_ll_i2c.h @@ -1205,7 +1205,7 @@ __STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR(I2C_TypeDef *I2Cx) /** * @brief Indicate the status of 10-bit header sent (master mode). - * @note RESET: When no ADD10 event occured. + * @note RESET: When no ADD10 event occurred. * SET: When the master has sent the first address byte (header). * @rmtoll SR1 ADD10 LL_I2C_IsActiveFlag_ADD10 * @param I2Cx I2C Instance. diff --git a/targets/TARGET_STM/TARGET_STM32L1/flash_api.c b/targets/TARGET_STM/TARGET_STM32L1/flash_api.c index 5e6932071f..d4b1b44203 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/flash_api.c +++ b/targets/TARGET_STM/TARGET_STM32L1/flash_api.c @@ -157,7 +157,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) uint32_t flash_get_page_size(const flash_t *obj) { - /* Page size is the minimum programable size, which 4 bytes */ + /* Page size is the minimum programmable size, which 4 bytes */ return 4; } diff --git a/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai.c b/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai.c index 02f941c970..74f81be2ce 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai.c +++ b/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai.c @@ -1469,7 +1469,7 @@ void HAL_SAI_IRQHandler(SAI_HandleTypeDef *hsai) uint32_t cr1config = hsai->Instance->CR1; uint32_t tmperror; - /* SAI Fifo request interrupt occured ------------------------------------*/ + /* SAI Fifo request interrupt occurred -----------------------------------*/ if(((itflags & SAI_xSR_FREQ) == SAI_xSR_FREQ) && ((itsources & SAI_IT_FREQ) == SAI_IT_FREQ)) { hsai->InterruptServiceRoutine(hsai); diff --git a/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lptim.h b/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lptim.h index fc04402a39..4b8c1dc129 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lptim.h +++ b/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lptim.h @@ -1030,7 +1030,7 @@ __STATIC_INLINE void LL_LPTIM_ClearFLAG_ARRM(LPTIM_TypeDef *LPTIMx) } /** - * @brief Inform application whether a autoreload match interrupt has occured. + * @brief Inform application whether a autoreload match interrupt has occurred. * @rmtoll ISR ARRM LL_LPTIM_IsActiveFlag_ARRM * @param LPTIMx Low-Power Timer instance * @retval State of bit (1 or 0). diff --git a/targets/TARGET_STM/TARGET_STM32L4/flash_api.c b/targets/TARGET_STM/TARGET_STM32L4/flash_api.c index 4904e93317..45444bee0e 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/flash_api.c +++ b/targets/TARGET_STM/TARGET_STM32L4/flash_api.c @@ -254,7 +254,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) { * @return The size of a page */ uint32_t flash_get_page_size(const flash_t *obj) { - /* Page size is the minimum programable size, which 8 bytes */ + /* Page size is the minimum programmable size, which 8 bytes */ return 8; } diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c index 3c4bc21945..973d30dd7d 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c @@ -1910,7 +1910,7 @@ uint8_t serial_rx_active(serial_t *obj) } /** The asynchronous TX handler. Writes to the TX FIFO and checks for events. - * If any TX event has occured, the TX abort function is called. + * If any TX event has occurred, the TX abort function is called. * * @param obj The serial object * @return Returns event flags if a TX transfer termination condition was met or 0 otherwise @@ -1961,7 +1961,7 @@ int serial_tx_irq_handler_asynch(serial_t *obj) } /** The asynchronous RX handler. Reads from the RX FIFOF and checks for events. - * If any RX event has occured, the RX abort function is called. + * If any RX event has occurred, the RX abort function is called. * * @param obj The serial object * @return Returns event flags if a RX transfer termination condition was met or 0 otherwise diff --git a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/inc/tmpm066_uart.h b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/inc/tmpm066_uart.h index 8f5df68ef2..e92becba4d 100644 --- a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/inc/tmpm066_uart.h +++ b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/inc/tmpm066_uart.h @@ -59,7 +59,7 @@ extern "C" { uint32_t TIDLE; /*!< The status of TXDx pin after output of the last bit */ uint32_t TXDEMP; /*!< The status of TXDx pin when an under run error - is occured in SCLK input mode */ + is occurred in SCLK input mode */ uint32_t EHOLDTime; /*!< The last bit hold time of TXDx pin in SCLK input mode */ uint32_t IntervalTime; /*!< Setting interval time of continuous transmission which diff --git a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_i2c.c b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_i2c.c index 2a90f4a30f..a6c993cc29 100644 --- a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_i2c.c +++ b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_i2c.c @@ -246,7 +246,7 @@ void I2C_ClearINTReq(TSB_I2C_TypeDef * I2Cx) } /** - * @brief Set I2c bus to Master mode and Generate start condition in I2C mode. + * @brief Set I2C bus to Master mode and Generate start condition in I2C mode. * @param I2Cx: Select the I2C channel. * This parameter can be one of the following values: * TSB_I2C0,TSB_I2C1 @@ -262,7 +262,7 @@ void I2C_GenerateStart(TSB_I2C_TypeDef * I2Cx) } /** - * @brief Set I2c bus to Master mode and Generate stop condition in I2C mode. + * @brief Set I2C bus to Master mode and Generate stop condition in I2C mode. * @param I2Cx: Select the I2C channel. * This parameter can be one of the following values: * TSB_I2C0,TSB_I2C1 diff --git a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_uart.c b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_uart.c index 2dd7cc1b8c..adaac5a604 100644 --- a/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_uart.c +++ b/targets/TARGET_TOSHIBA/TARGET_TMPM066/Periph_Driver/src/tmpm066_uart.c @@ -1121,7 +1121,7 @@ void SIO_Init(TSB_SC_TypeDef * SIOx, uint32_t IOClkSel, SIO_InitTypeDef * InitSt tmp &= (CR_IOC_MASK & CR_SCLKS_MASK & CR_TIDLE_MASK); tmp |= (IOClkSel | InitStruct->InputClkEdge | InitStruct->TIDLE); - /* Set status of TXDx pin when an under run error is occured + /* Set status of TXDx pin when an under run error is occurred and The last bit hold time of TXDx pin in SCLK input mode */ if (IOClkSel == SIO_CLK_SCLKINPUT) { tmp &= (CR_TXDEMP_MASK & CR_EHOLD_MASK); diff --git a/tools/debug_tools/crash_log_parser/crash_log_parser.py b/tools/debug_tools/crash_log_parser/crash_log_parser.py index 96bf0ad786..33b1d9c8c8 100644 --- a/tools/debug_tools/crash_log_parser/crash_log_parser.py +++ b/tools/debug_tools/crash_log_parser/crash_log_parser.py @@ -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: