diff --git a/.github/workflows/CodeSpell.yml b/.github/workflows/CodeSpell.yml new file mode 100644 index 0000000000..d97f01c2a6 --- /dev/null +++ b/.github/workflows/CodeSpell.yml @@ -0,0 +1,27 @@ +name: codespell + +on: + push: + branches: + - main + pull_request: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md + - name: Spell check + uses: codespell-project/actions-codespell@master + with: + check_filenames: true + check_hidden: true + # In the event of a false positive, add the word in all lower case to this file: + ignore_words_file: ./CI/codespell/.codespellignore + skip: ./.git,./CI,./system/Drivers,./system/Middlewares diff --git a/CI/codespell/.codespellignore b/CI/codespell/.codespellignore new file mode 100644 index 0000000000..388364b88b --- /dev/null +++ b/CI/codespell/.codespellignore @@ -0,0 +1,8 @@ +busses +dout +exten +hart +hsi +noe +nwe + diff --git a/CI/codespell/.codespellrc b/CI/codespell/.codespellrc new file mode 100644 index 0000000000..4492c212ec --- /dev/null +++ b/CI/codespell/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +check-filenames = +check-hidden = +skip = ./.git,./CI,./system/Drivers,./system/Middlewares +ignore-words = ./CI/codespell/.codespellignore diff --git a/CI/codespell/codespell.md b/CI/codespell/codespell.md new file mode 100644 index 0000000000..f2f6bf5225 --- /dev/null +++ b/CI/codespell/codespell.md @@ -0,0 +1,21 @@ +## [codespell] + +[codespell] is used to check common misspellings and fix them. + +To execute it within this repository, it has to be installed first, see [installation](https://github.com/codespell-project/codespell#installation). +Then run from the root folder this command using the configuration file: + +* Linux or equivalent: + +```console +codespell --config ./CI/codespell/.codespellrc +``` + +* Windows + +```console +codespell.exe --config .\CI\codespell\.codespellrc +``` + + +[codespell]: https://github.com/codespell-project/codespell diff --git a/CI/update/stm32cube.py b/CI/update/stm32cube.py index d7b01b2ea4..c5d76240ee 100644 --- a/CI/update/stm32cube.py +++ b/CI/update/stm32cube.py @@ -42,7 +42,7 @@ hal_dest_path = system_dest_path / hal_src_path cmsis_dest_path = system_dest_path / hal_src_path / "CMSIS" / "Device" / "ST" -stm32_list = [] # Serie +stm32_list = [] # series cube_versions = collections.OrderedDict() # key: serie name, value: cube version cube_HAL_versions = collections.OrderedDict() # key: serie name, value: HAL version cube_CMSIS_versions = collections.OrderedDict() # key: serie name, value: CMSIS version diff --git a/CI/update/stm32variant.py b/CI/update/stm32variant.py index 1bcfb6b702..b2cdd5d9d4 100644 --- a/CI/update/stm32variant.py +++ b/CI/update/stm32variant.py @@ -2012,7 +2012,7 @@ def aggregate_dir(): # Get all mcu_dir mcu_dirs = sorted(mcu_family.glob("*/")) - # Group mcu directories when only expressions and xml file name are differents + # Group mcu directories when only expressions and xml file name are different while mcu_dirs: # Pop first item group_mcu_dir = [mcu_dirs.pop(0)] diff --git a/CI/utils/pathlib_ext.py b/CI/utils/pathlib_ext.py index 27134f2624..b1cf7dcda2 100644 --- a/CI/utils/pathlib_ext.py +++ b/CI/utils/pathlib_ext.py @@ -36,7 +36,7 @@ def copyFile(src, dest): def genSTM32List(path, pattern): - stm32_list = [] # Serie + stm32_list = [] # series dir_pattern = re.compile(r"^STM32(.*)xx_HAL_Driver$", re.IGNORECASE) if pattern is not None: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6bb7bcc8d6..1a1492b917 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ To report a bug/request please file an issue in the right repository (example for [Arduino_Core_STM32](https://github.com/stm32duino/Arduino_Core_STM32/issues/new/choose)). But check the following boxes before posting an issue: -- [ ] `Make sure you are using the latest STM32 core and libraries versions.` See [lastest core here](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest). +- [ ] `Make sure you are using the latest STM32 core and libraries versions.` See [latest core here](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest). - [ ] `Your issue is NOT a question/feedback/suggestions.` This should be discussed on the [stm32duino forum](http://stm32duino.com): * questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=35). * bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=38). diff --git a/README.md b/README.md index e79489a560..c14ca50537 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![forums](https://img.shields.io/badge/join-the%20forums-blue.svg)](https://www.stm32duino.com/) [![wiki](https://img.shields.io/badge/browse-the%20wiki-orange.svg)](https://github.com/stm32duino/wiki/wiki) [![STM32 Core Continuous Integration](https://github.com/stm32duino/Arduino_Core_STM32/workflows/STM32%20Core%20Continuous%20Integration/badge.svg?branch=main)](https://github.com/stm32duino/Arduino_Core_STM32/actions) - +[![codespell](https://github.com/stm32duino/Arduino_Core_STM32/workflows/codespell/badge.svg)](https://github.com/stm32duino/Arduino_Core_STM32/actions?workflow=codespell) [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp index 890341f81b..52883d0986 100644 --- a/cores/arduino/HardwareSerial.cpp +++ b/cores/arduino/HardwareSerial.cpp @@ -265,7 +265,7 @@ HardwareSerial::HardwareSerial(void *peripheral, HalfDuplexMode_t halfDuplex) setTx(PIN_SERIALLP2_TX); } else #endif - // else get the pins of the first peripheral occurence in PinMap + // else get the pins of the first peripheral occurrence in PinMap { _serial.pin_rx = pinmap_pin(peripheral, PinMap_UART_RX); _serial.pin_tx = pinmap_pin(peripheral, PinMap_UART_TX); @@ -485,7 +485,7 @@ void HardwareSerial::flush() // nop, the interrupt handler will free up space for us } // If we get here, nothing is queued anymore (DRIE is disabled) and - // the hardware finished tranmission (TXC is set). + // the hardware finished transmission (TXC is set). } size_t HardwareSerial::write(const uint8_t *buffer, size_t size) diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h index 5ac3fc2a09..4048c5cebf 100644 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -33,7 +33,7 @@ // using a ring buffer (I think), in which head is the index of the location // to which to write the next incoming character and tail is the index of the // location from which to read. -// NOTE: a "power of 2" buffer size is reccomended to dramatically +// NOTE: a "power of 2" buffer size is recommended to dramatically // optimize all the modulo operations for ring buffers. // WARNING: When buffer sizes are increased to > 256, the buffer index // variables are automatically increased in size, but the extra diff --git a/cores/arduino/HardwareTimer.cpp b/cores/arduino/HardwareTimer.cpp index 1dc5432ad8..245b271ac4 100644 --- a/cores/arduino/HardwareTimer.cpp +++ b/cores/arduino/HardwareTimer.cpp @@ -50,7 +50,7 @@ HardwareTimer::HardwareTimer() * @brief HardwareTimer constructor: set default configuration values * The timer will be usable directly, there is no need to call * setup(). Using this constructor is not recommended for - * global variables that are automatically initalized at + * global variables that are automatically initialized at * startup, since this will happen to early to report any * errors. Better use the argumentless constructor and call the * setup() method during initialization later. @@ -195,7 +195,7 @@ void HardwareTimer::pauseChannel(uint32_t channel) } #endif - // In case 2 channels are used, disbale also the 2nd one + // In case 2 channels are used, disable also the 2nd one if (_ChannelMode[channel - 1] == TIMER_INPUT_FREQ_DUTY_MEASUREMENT) { // Identify and configure 2nd associated channel timAssociatedInputChannel = getAssociatedChannel(channel); @@ -470,7 +470,7 @@ void HardwareTimer::setPrescaleFactor(uint32_t prescaler) /** * @brief Retrieve overflow (rollover) value from hardware register - * @param format of returned value. If ommited default format is Tick + * @param format of returned value. If omitted default format is Tick * @retval overflow depending on format value: * TICK_FORMAT: return number of tick for overflow * MICROSEC_FORMAT: return number of microsecondes for overflow @@ -505,7 +505,7 @@ uint32_t HardwareTimer::getOverflow(TimerFormat_t format) * (usually the next timer overflow). See setPreloadEnable() * for controlling this behaviour. * @param overflow: depend on format parameter - * @param format of overflow parameter. If ommited default format is Tick + * @param format of overflow parameter. If omitted default format is Tick * TICK_FORMAT: overflow is the number of tick for overflow * MICROSEC_FORMAT: overflow is the number of microsecondes for overflow * HERTZ_FORMAT: overflow is the frequency in hertz for overflow @@ -548,8 +548,8 @@ void HardwareTimer::setOverflow(uint32_t overflow, TimerFormat_t format) } /** - * @brief Retreive timer counter value - * @param format of returned value. If ommited default format is Tick + * @brief Retrieve timer counter value + * @param format of returned value. If omitted default format is Tick * @retval overflow depending on format value: * TICK_FORMAT: return number of tick for counter * MICROSEC_FORMAT: return number of microsecondes for counter @@ -578,7 +578,7 @@ uint32_t HardwareTimer::getCount(TimerFormat_t format) /** * @brief Set timer counter value * @param counter: depend on format parameter - * @param format of overflow parameter. If ommited default format is Tick + * @param format of overflow parameter. If omitted default format is Tick * TICK_FORMAT: counter is the number of tick * MICROSEC_FORMAT: counter is the number of microsecondes * HERTZ_FORMAT: counter is the frequency in hertz @@ -793,7 +793,7 @@ void HardwareTimer::setPreloadEnable(bool value) * @brief Set channel Capture/Compare register * @param channel: Arduino channel [1..4] * @param compare: compare value depending on format - * @param format of compare parameter. If ommited default format is Tick + * @param format of compare parameter. If omitted default format is Tick * TICK_FORMAT: compare is the number of tick * MICROSEC_FORMAT: compare is the number of microsecondes * HERTZ_FORMAT: compare is the frequency in hertz @@ -857,7 +857,7 @@ void HardwareTimer::setCaptureCompare(uint32_t channel, uint32_t compare, TimerC /** * @brief Retrieve Capture/Compare value * @param channel: Arduino channel [1..4] - * @param format of return value. If ommited default format is Tick + * @param format of return value. If omitted default format is Tick * TICK_FORMAT: return value is the number of tick for Capture/Compare value * MICROSEC_FORMAT: return value is the number of microsecondes for Capture/Compare value * HERTZ_FORMAT: return value is the frequency in hertz for Capture/Compare value @@ -913,7 +913,7 @@ uint32_t HardwareTimer::getCaptureCompare(uint32_t channel, TimerCompareFormat_ /** * @param channel: Arduino channel [1..4] * @param pin: Arduino pin number, ex D1, 1 or PA1 - * @param frequency: PWM frequency expessed in hertz + * @param frequency: PWM frequency expressed in hertz * @param dutycycle: PWM dutycycle expressed in percentage * @param PeriodCallback: timer period callback (timer rollover upon udate event) * @param CompareCallback: timer compare callback @@ -928,7 +928,7 @@ void HardwareTimer::setPWM(uint32_t channel, uint32_t pin, uint32_t frequency, u * @brief All in one function to configure PWM * @param channel: Arduino channel [1..4] * @param pin: pin name, ex PB_0 - * @param frequency: PWM frequency expessed in hertz + * @param frequency: PWM frequency expressed in hertz * @param dutycycle: PWM dutycycle expressed in percentage * @param PeriodCallback: timer period callback (timer rollover upon udate event) * @param CompareCallback: timer compare callback @@ -992,7 +992,7 @@ void HardwareTimer::attachInterrupt(callback_function_t callback) } /** - * @brief Dettach interrupt callback on update (rollover) event + * @brief Detach interrupt callback on update (rollover) event * @retval None */ void HardwareTimer::detachInterrupt() @@ -1033,7 +1033,7 @@ void HardwareTimer::attachInterrupt(uint32_t channel, callback_function_t callba } /** - * @brief Dettach interrupt callback on Capture/Compare event + * @brief Detach interrupt callback on Capture/Compare event * @param channel: Arduino channel [1..4] * @retval None */ @@ -1078,7 +1078,7 @@ bool HardwareTimer::hasInterrupt(uint32_t channel) /** * @brief Generate an update event to force all registers (Autoreload, prescaler, compare) to be taken into account * @note Refresh() can only be called after a 1st call to resume() to be sure timer is initialised. - * It is usefull while timer is running after some registers update + * It is useful while timer is running after some registers update * @retval None */ void HardwareTimer::refresh() @@ -1118,7 +1118,7 @@ void HardwareTimer::updateCallback(TIM_HandleTypeDef *htim) } /** - * @brief Generic Caputre and Compare callback which will call user callback + * @brief Generic Capture and Compare callback which will call user callback * @param htim: HAL timer handle * @retval None */ @@ -1187,7 +1187,7 @@ bool HardwareTimer::isRunningChannel(uint32_t channel) Error_Handler(); } - // channel is runnning if: timer is running, and either output channel is + // channel is running if: timer is running, and either output channel is // enabled or interrupt is set ret = LL_TIM_CC_IsEnabledChannel(_timerObj.handle.Instance, LLChannel) || (__HAL_TIM_GET_IT_SOURCE(&(_timerObj.handle), interrupt) == SET); diff --git a/cores/arduino/HardwareTimer.h b/cores/arduino/HardwareTimer.h index a4010b0889..2b6027a941 100644 --- a/cores/arduino/HardwareTimer.h +++ b/cores/arduino/HardwareTimer.h @@ -115,7 +115,7 @@ class HardwareTimer { void setOverflow(uint32_t val, TimerFormat_t format = TICK_FORMAT); // set AutoReload register depending on format provided uint32_t getOverflow(TimerFormat_t format = TICK_FORMAT); // return overflow depending on format provided - void setPWM(uint32_t channel, PinName pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr); // Set all in one command freq in HZ, Duty in percentage. Including both interrup. + void setPWM(uint32_t channel, PinName pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr); // Set all in one command freq in HZ, Duty in percentage. Including both interrupt. void setPWM(uint32_t channel, uint32_t pin, uint32_t frequency, uint32_t dutycycle, callback_function_t PeriodCallback = nullptr, callback_function_t CompareCallback = nullptr); void setCount(uint32_t val, TimerFormat_t format = TICK_FORMAT); // set timer counter to value 'val' depending on format provided @@ -143,7 +143,7 @@ class HardwareTimer { bool hasInterrupt(uint32_t channel); //returns true if an interrupt has already been set on the channel compare match void timerHandleDeinit(); // Timer deinitialization - // Refresh() is usefull while timer is running after some registers update + // Refresh() is useful while timer is running after some registers update void refresh(void); // Generate update event to force all registers (Autoreload, prescaler, compare) to be taken into account uint32_t getTimerClkFreq(); // return timer clock frequency in Hz. diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index ad835cd5f3..f7bae65254 100644 --- a/cores/arduino/Print.h +++ b/cores/arduino/Print.h @@ -69,7 +69,7 @@ class Print { } // default to zero, meaning "a single write may block" - // should be overriden by subclasses with buffering + // should be overridden by subclasses with buffering virtual int availableForWrite() { return 0; diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h index 38b82be719..ee3a041325 100644 --- a/cores/arduino/Stream.h +++ b/cores/arduino/Stream.h @@ -25,7 +25,7 @@ #include #include "Print.h" -// compatability macros for testing +// compatibility macros for testing /* #define getInt() parseInt() #define getInt(ignore) parseInt(ignore) diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index e6e7aecda5..af4ce887e8 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -97,7 +97,7 @@ class String { // returns true on success, false on failure (in which case, the string // is left unchanged). if the argument is null or invalid, the - // concatenation is considered unsucessful. + // concatenation is considered unsuccessful. unsigned char concat(const String &str); unsigned char concat(const char *cstr); unsigned char concat(char c); @@ -213,7 +213,7 @@ class String { unsigned char startsWith(const String &prefix, unsigned int offset) const; unsigned char endsWith(const String &suffix) const; - // character acccess + // character access char charAt(unsigned int index) const; void setCharAt(unsigned int index, char c); char operator [](unsigned int index) const; diff --git a/cores/arduino/pins_arduino.h b/cores/arduino/pins_arduino.h index a98cf65606..b9d9c2e2fa 100644 --- a/cores/arduino/pins_arduino.h +++ b/cores/arduino/pins_arduino.h @@ -169,7 +169,7 @@ PinName analogInputToPinName(uint32_t pin); #define digitalPinIsValid(p) (digitalPinToPinName(p) != NC) /* As some pin could be duplicated in digitalPin[] */ -/* return first occurence of linked PinName (PYx) */ +/* return first occurrence of linked PinName (PYx) */ #define digitalPinFirstOccurence(p) (pinNametoDigitalPin(digitalPinToPinName(p))) /* Specific for Firmata */ diff --git a/cores/arduino/stm32/OpenAMP/rsc_table.c b/cores/arduino/stm32/OpenAMP/rsc_table.c index 1dece827e5..dd6fc68e88 100644 --- a/cores/arduino/stm32/OpenAMP/rsc_table.c +++ b/cores/arduino/stm32/OpenAMP/rsc_table.c @@ -2,7 +2,7 @@ ****************************************************************************** * @file rsc_table.c * @author MCD Application Team - * @brief Ressource table + * @brief Resource table * * This file provides a default resource table requested by remote proc to * load the elf file. It also allows to add debug trace using a shared buffer. diff --git a/cores/arduino/stm32/OpenAMP/virtio_buffer.c b/cores/arduino/stm32/OpenAMP/virtio_buffer.c index b6643f2688..e1cdceee4f 100644 --- a/cores/arduino/stm32/OpenAMP/virtio_buffer.c +++ b/cores/arduino/stm32/OpenAMP/virtio_buffer.c @@ -58,7 +58,7 @@ static uint16_t read(virtio_buffer_t *ring, uint8_t *dst, uint16_t size, bool pe // Manage ring buffer rollover // First, copy ring buffer from read index to end of buffer memcpy(dst, ring->buffer + read_index, VIRTIO_BUFFER_SIZE - read_index); - // then, copy ring buffer from begining of buffer to end of read + // then, copy ring buffer from beginning of buffer to end of read memcpy(dst + VIRTIO_BUFFER_SIZE - read_index, ring->buffer, size - (VIRTIO_BUFFER_SIZE - read_index)); } else { memcpy(dst, ring->buffer + read_index, size); diff --git a/cores/arduino/stm32/PeripheralPins.h b/cores/arduino/stm32/PeripheralPins.h index 26ddc8e465..9e9057f124 100644 --- a/cores/arduino/stm32/PeripheralPins.h +++ b/cores/arduino/stm32/PeripheralPins.h @@ -47,7 +47,7 @@ extern const PinMap PinMap_I2C_SDA[]; extern const PinMap PinMap_I2C_SCL[]; //*** TIM *** -/* For backward compatibilty */ +/* For backward compatibility */ #define PinMap_PWM PinMap_TIM extern const PinMap PinMap_TIM[]; diff --git a/cores/arduino/stm32/usb/cdc/usbd_cdc.c b/cores/arduino/stm32/usb/cdc/usbd_cdc.c index 3c1663e3c6..027189cdc9 100644 --- a/cores/arduino/stm32/usb/cdc/usbd_cdc.c +++ b/cores/arduino/stm32/usb/cdc/usbd_cdc.c @@ -347,7 +347,7 @@ __ALIGN_BEGIN static uint8_t USBD_CDC_CfgFSDesc[USB_CDC_CONFIG_DESC_SIZ] __ALIGN }; __ALIGN_BEGIN static uint8_t USBD_CDC_OtherSpeedCfgDesc[USB_CDC_CONFIG_DESC_SIZ] __ALIGN_END = { - 0x09, /* bLength: Configuation Descriptor size */ + 0x09, /* bLength: Configuration Descriptor size */ USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION, USB_CDC_CONFIG_DESC_SIZ, 0x00, diff --git a/cores/arduino/stm32/usb/hid/usbd_hid_composite.c b/cores/arduino/stm32/usb/hid/usbd_hid_composite.c index 2a6457615e..23b251eaa3 100644 --- a/cores/arduino/stm32/usb/hid/usbd_hid_composite.c +++ b/cores/arduino/stm32/usb/hid/usbd_hid_composite.c @@ -581,7 +581,7 @@ static uint8_t USBD_HID_DeInit(USBD_HandleTypeDef *pdev, static uint8_t USBD_COMPOSITE_HID_Setup(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - /* Check which interface is targetted by this request */ + /* Check which interface is targeted by this request */ if ((req->wIndex & 0x00FF) == HID_KEYBOARD_INTERFACE) { return USBD_HID_KEYBOARD_Setup(pdev, req); } else { diff --git a/cores/arduino/stm32/usb/hid/usbd_hid_composite_if.c b/cores/arduino/stm32/usb/hid/usbd_hid_composite_if.c index 6b7feb3e17..5f716e6637 100644 --- a/cores/arduino/stm32/usb/hid/usbd_hid_composite_if.c +++ b/cores/arduino/stm32/usb/hid/usbd_hid_composite_if.c @@ -87,7 +87,7 @@ void HID_Composite_DeInit(HID_Interface device) /** * @brief Send HID mouse Report * @param report pointer to report - * @param len report lenght + * @param len report length * @retval none */ void HID_Composite_mouse_sendReport(uint8_t *report, uint16_t len) @@ -98,7 +98,7 @@ void HID_Composite_mouse_sendReport(uint8_t *report, uint16_t len) /** * @brief Send HID keyboard Report * @param report pointer to report - * @param len report lenght + * @param len report length * @retval none */ void HID_Composite_keyboard_sendReport(uint8_t *report, uint16_t len) diff --git a/cores/arduino/wiring_time.h b/cores/arduino/wiring_time.h index d82a737d78..74b1978c92 100644 --- a/cores/arduino/wiring_time.h +++ b/cores/arduino/wiring_time.h @@ -48,7 +48,7 @@ extern uint32_t millis(void) ; extern uint32_t micros(void) ; /** - * \brief Pauses the program for the amount of time (in miliseconds) specified as parameter. + * \brief Pauses the program for the amount of time (in milliseconds) specified as parameter. * (There are 1000 milliseconds in a second.) * * \param ms the number of milliseconds to pause (uint32_t) diff --git a/libraries/EEPROM/README.md b/libraries/EEPROM/README.md index a62413613d..cd2418e45b 100644 --- a/libraries/EEPROM/README.md +++ b/libraries/EEPROM/README.md @@ -136,4 +136,4 @@ This is useful for STL objects, custom iteration and C++11 style ranged for loop This function returns an `EEPtr` pointing at the location after the last EEPROM cell. Used with `begin()` to provide custom iteration. -**Note:** The `EEPtr` returned is invalid as it is out of range. Infact the hardware causes wrapping of the address (overflow) and `EEPROM.end()` actually references the first EEPROM cell. +**Note:** The `EEPtr` returned is invalid as it is out of range. In fact the hardware causes wrapping of the address (overflow) and `EEPROM.end()` actually references the first EEPROM cell. diff --git a/libraries/EEPROM/src/utility/stm32_eeprom.c b/libraries/EEPROM/src/utility/stm32_eeprom.c index dd63430295..e37638daaf 100644 --- a/libraries/EEPROM/src/utility/stm32_eeprom.c +++ b/libraries/EEPROM/src/utility/stm32_eeprom.c @@ -75,7 +75,7 @@ extern "C" { #ifndef FLASH_BASE_ADDRESS /* * By default, Use the last page of the flash to store data - * in order to prevent overwritting + * in order to prevent overwriting * program data */ #if defined(EEPROM_RETRAM_MODE) diff --git a/libraries/IWatchdog/examples/IWDG_Button/IWDG_Button.ino b/libraries/IWatchdog/examples/IWDG_Button/IWDG_Button.ino index 51d69adafb..a0da9408a1 100644 --- a/libraries/IWatchdog/examples/IWDG_Button/IWDG_Button.ino +++ b/libraries/IWatchdog/examples/IWDG_Button/IWDG_Button.ino @@ -9,7 +9,7 @@ If left unattended the system would reset itself about every 10 seconds. You would have to keep pressing the button frequently (< 10 seconds apart) - to prevent the system from reseting itself. + to prevent the system from resetting itself. You would recognize the reset condition when the LED blinks few times quickly. diff --git a/libraries/IWatchdog/library.properties b/libraries/IWatchdog/library.properties index 1f45ef1d2d..114a9a03ed 100644 --- a/libraries/IWatchdog/library.properties +++ b/libraries/IWatchdog/library.properties @@ -3,7 +3,7 @@ version=1.0.0 author=Venelin Efremov, Frederic Pillon maintainer=stm32duino sentence=Enables support for independent watchdog (IWDG) hardware on STM32 processors. -paragraph=Independent watchdog (IWDG) is a hardware timer on the chip which would generate a reset condition if the time is not reloaded withing the specified time. It is generally used in production systems to reset the system if the CPU becomes "stuck". +paragraph=Independent watchdog (IWDG) is a hardware timer on the chip which would generate a reset condition if the time is not reloaded within the specified time. It is generally used in production systems to reset the system if the CPU becomes "stuck". category=Timing url= architectures=stm32 diff --git a/libraries/Keyboard/README.adoc b/libraries/Keyboard/README.adoc index 0d77d9a83d..866f8ad6f2 100644 --- a/libraries/Keyboard/README.adoc +++ b/libraries/Keyboard/README.adoc @@ -1,6 +1,6 @@ = Keyboard Library for Arduino = -This library allows an Arduino board with USB capabilites to act as a Keyboard. +This library allows an Arduino board with USB capabilities to act as a Keyboard. Being based on HID library you need to include "HID.h" in your sketch. For more information about this library please visit us at diff --git a/libraries/Keyboard/library.properties b/libraries/Keyboard/library.properties index 64a98c432a..8eea681d30 100644 --- a/libraries/Keyboard/library.properties +++ b/libraries/Keyboard/library.properties @@ -2,7 +2,7 @@ name=Keyboard version=1.1.0 author=Arduino maintainer=Arduino -sentence=Allows an Arduino/Genuino board with USB capabilites to act as a Keyboard. +sentence=Allows an Arduino/Genuino board with USB capabilities to act as a Keyboard. paragraph=This library plugs on the HID library. It can be used with or without other HID-based libraries (Mouse, Gamepad etc) category=Device Control url=http://www.arduino.cc/en/Reference/Keyboard diff --git a/libraries/Mouse/README.adoc b/libraries/Mouse/README.adoc index 3e61306c65..6060b59ae9 100644 --- a/libraries/Mouse/README.adoc +++ b/libraries/Mouse/README.adoc @@ -1,6 +1,6 @@ = Mouse Library for Arduino = -This library allows an Arduino board with USB capabilites to act as a Mouse. +This library allows an Arduino board with USB capabilities to act as a Mouse. Being based on HID library you need to include "HID.h" in your sketch For more information about this library please visit us at diff --git a/libraries/Mouse/library.properties b/libraries/Mouse/library.properties index 8c48029eb0..74d2c5f114 100644 --- a/libraries/Mouse/library.properties +++ b/libraries/Mouse/library.properties @@ -2,7 +2,7 @@ name=Mouse version=1.1.0 author=Arduino maintainer=Arduino -sentence=Allows an Arduino board with USB capabilites to act as a Mouse. For Leonardo/Micro only +sentence=Allows an Arduino board with USB capabilities to act as a Mouse. For Leonardo/Micro only paragraph=This library plugs on the HID library. Can be used with or without other HID-based libraries (Keyboard, Gamepad etc) category=Device Control url=http://www.arduino.cc/en/Reference/Mouse diff --git a/libraries/SPI/README.md b/libraries/SPI/README.md index 36f3bd5738..18fa5c632d 100644 --- a/libraries/SPI/README.md +++ b/libraries/SPI/README.md @@ -1,70 +1,70 @@ ## SPI -STM32 SPI library has been modified with the possibility to manage several CS pins without to stop the SPI interface. -_We do not describe here the [SPI Arduino API](https://www.arduino.cc/en/Reference/SPI) but the functionalities added._ +STM32 SPI library has been modified with the possibility to manage several CS pins without to stop the SPI interface. +_We do not describe here the [SPI Arduino API](https://www.arduino.cc/en/Reference/SPI) but the functionalities added._ -We give to the user 3 possiblities about the management of the CS pin: -1. the CS pin is managed directly by the user code before to transfer the data (like the Arduino SPI library) -2. the user gives the CS pin number to the library API and the library manages itself the CS pin (see example below) -3. the user uses a hardware CS pin linked to the SPI peripheral +We give to the user 3 possibilities about the management of the CS pin: +1. the CS pin is managed directly by the user code before to transfer the data (like the Arduino SPI library) +2. the user gives the CS pin number to the library API and the library manages itself the CS pin (see example below) +3. the user uses a hardware CS pin linked to the SPI peripheral ### New API functions -* **`SPIClass::SPIClass(uint8_t mosi, uint8_t miso, uint8_t sclk, uint8_t ssel)`**: alternative class constructor -_Params_ SPI mosi pin -_Params_ SPI miso pin -_Params_ SPI sclk pin -_Params_ (optional) SPI ssel pin. This pin must be an hardware CS pin. If you configure this pin, the chip select will be managed by the SPI peripheral. Do not use API functions with CS pin in parameter. +* **`SPIClass::SPIClass(uint8_t mosi, uint8_t miso, uint8_t sclk, uint8_t ssel)`**: alternative class constructor +_Params_ SPI mosi pin +_Params_ SPI miso pin +_Params_ SPI sclk pin +_Params_ (optional) SPI ssel pin. This pin must be an hardware CS pin. If you configure this pin, the chip select will be managed by the SPI peripheral. Do not use API functions with CS pin in parameter. -* **`void SPIClass::begin(uint8_t _pin)`**: initialize the SPI interface and add a CS pin -_Params_ spi CS pin to be managed by the SPI library +* **`void SPIClass::begin(uint8_t _pin)`**: initialize the SPI interface and add a CS pin +_Params_ spi CS pin to be managed by the SPI library -* **`void beginTransaction(uint8_t pin, SPISettings settings)`**: allows to configure the SPI with other parameter. These new parameter are saved this an associated CS pin. -_Params_ SPI CS pin to be managed by the SPI library -_Params_ SPI settings +* **`void beginTransaction(uint8_t pin, SPISettings settings)`**: allows to configure the SPI with other parameter. These new parameter are saved this an associated CS pin. +_Params_ SPI CS pin to be managed by the SPI library +_Params_ SPI settings -* **`void endTransaction(uint8_t pin)`**: removes a CS pin and the SPI settings associated -_Params_ SPI CS pin managed by the SPI library +* **`void endTransaction(uint8_t pin)`**: removes a CS pin and the SPI settings associated +_Params_ SPI CS pin managed by the SPI library -**_Note 1_** The following functions must be called after initialization of the SPI instance with `begin()` or `beginTransaction()`. -If you have several device to manage, you can call `beginTransaction()` several time with different CS pin in parameter. -Then you can call the following functions with different CS pin without call again `beginTransaction()` (until you call `end()` or `endTransaction()`). +**_Note 1_** The following functions must be called after initialization of the SPI instance with `begin()` or `beginTransaction()`. +If you have several device to manage, you can call `beginTransaction()` several time with different CS pin in parameter. +Then you can call the following functions with different CS pin without call again `beginTransaction()` (until you call `end()` or `endTransaction()`). -**_Note 2_** If the mode is set to `SPI_CONTINUE`, the CS pin is kept enabled. Be careful in case you use several CS pin. +**_Note 2_** If the mode is set to `SPI_CONTINUE`, the CS pin is kept enabled. Be careful in case you use several CS pin. -* **`byte transfer(uint8_t pin, uint8_t _data, SPITransferMode _mode = SPI_LAST)`**: write/read one byte -_Params_ SPI CS pin managed by the SPI library -_Params_ data to write -_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. -_Return_ byte received +* **`byte transfer(uint8_t pin, uint8_t _data, SPITransferMode _mode = SPI_LAST)`**: write/read one byte +_Params_ SPI CS pin managed by the SPI library +_Params_ data to write +_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. +_Return_ byte received -* **`uint16_t transfer16(uint8_t pin, uint16_t _data, SPITransferMode _mode = SPI_LAST)`**: write/read half-word -_Params_ SPI CS pin managed by the SPI library -_Params_ 16bits data to write -_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. -_Return_ 16bits data received +* **`uint16_t transfer16(uint8_t pin, uint16_t _data, SPITransferMode _mode = SPI_LAST)`**: write/read half-word +_Params_ SPI CS pin managed by the SPI library +_Params_ 16bits data to write +_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. +_Return_ 16bits data received -* **`void transfer(uint8_t pin, void *_buf, size_t _count, SPITransferMode _mode = SPI_LAST)`**: write/read several bytes. Only one buffer used to write and read the data -_Params_ SPI CS pin managed by the SPI library -_Params_ pointer to data to write. The data will be replaced by the data read. +* **`void transfer(uint8_t pin, void *_buf, size_t _count, SPITransferMode _mode = SPI_LAST)`**: write/read several bytes. Only one buffer used to write and read the data +_Params_ SPI CS pin managed by the SPI library +_Params_ pointer to data to write. The data will be replaced by the data read. _Params_ number of data to write/read. -_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. +_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. -* **`void transfer(byte _pin, void *_bufout, void *_bufin, size_t _count, SPITransferMode _mode = SPI_LAST)`**: write/read several bytes. One buffer for the output data and one for the input data -_Params_ SPI CS pin managed by the SPI library -_Params_ pointer to data to write. -_Params_ pointer where to store the data read. -_Params_ number of data to write/read. -_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. +* **`void transfer(byte _pin, void *_bufout, void *_bufin, size_t _count, SPITransferMode _mode = SPI_LAST)`**: write/read several bytes. One buffer for the output data and one for the input data +_Params_ SPI CS pin managed by the SPI library +_Params_ pointer to data to write. +_Params_ pointer where to store the data read. +_Params_ number of data to write/read. +_Params_ (optional) if `SPI_LAST` CS pin is reset, `SPI_CONTINUE` the CS pin is kept enabled. ### Example -This is an example of the use of the CS pin management: +This is an example of the use of the CS pin management: ```C++ -SPI.begin(2); //Enables the SPI instance with default settings and attachs the CS pin -SPI.beginTransaction(1, settings); //Attachs another CS pin and configure the SPI instance with other settings +SPI.begin(2); //Enables the SPI instance with default settings and attaches the CS pin +SPI.beginTransaction(1, settings); //Attaches another CS pin and configure the SPI instance with other settings SPI.transfer(1, 0x52); //Transfers data to the first device -SPI.transfer(2, 0xA4); //Transfers data to the second device. The SPI instance is configured with the right settings +SPI.transfer(2, 0xA4); //Transfers data to the second device. The SPI instance is configured with the right settings SPI.end() //SPI instance is disabled ``` diff --git a/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino b/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino index df73adeb2e..7f9efdb9c9 100644 --- a/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino +++ b/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino @@ -43,7 +43,7 @@ void setup() { // start the SPI library: SPI.begin(); - // initalize the data ready and chip select pins: + // initialize the data ready and chip select pins: pinMode(dataReadyPin, INPUT); pinMode(chipSelectPin, OUTPUT); diff --git a/libraries/SPI/src/utility/spi_com.c b/libraries/SPI/src/utility/spi_com.c index 3e22497ad8..32d46261dc 100644 --- a/libraries/SPI/src/utility/spi_com.c +++ b/libraries/SPI/src/utility/spi_com.c @@ -315,7 +315,7 @@ void spi_init(spi_t *obj, uint32_t speed, spi_mode_e mode, uint8_t msb) handle->Init.NSSPMode = SPI_NSS_PULSE_DISABLE; #endif #ifdef SPI_MASTER_KEEP_IO_STATE_ENABLE - handle->Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE; /* Recommanded setting to avoid glitches */ + handle->Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE; /* Recommended setting to avoid glitches */ #endif /* Configure SPI GPIO pins */ diff --git a/libraries/SPI/src/utility/spi_com.h b/libraries/SPI/src/utility/spi_com.h index 9f0d2d77a1..daba244b4c 100644 --- a/libraries/SPI/src/utility/spi_com.h +++ b/libraries/SPI/src/utility/spi_com.h @@ -78,7 +78,7 @@ typedef struct spi_s spi_t; #define SPI_SPEED_CLOCK_DIV128_MHZ ((uint32_t)128) #define SPI_SPEED_CLOCK_DIV256_MHZ ((uint32_t)256) -///@brief speficies the SPI mode to use +///@brief specifies the SPI mode to use //Mode Clock Polarity (CPOL) Clock Phase (CPHA) //SPI_MODE0 0 0 //SPI_MODE1 0 1 diff --git a/libraries/Servo/examples/fs90r/fs90r.ino b/libraries/Servo/examples/fs90r/fs90r.ino index 8499e1b486..c8f11d8eca 100644 --- a/libraries/Servo/examples/fs90r/fs90r.ino +++ b/libraries/Servo/examples/fs90r/fs90r.ino @@ -1,10 +1,10 @@ /* Use servo library to control a FS90R motor - Motor information : + Motor information : http://www.feetechrc.com/product/analog-servo/micro-1-3kg-cm-360-degree-continuous-rotation-servo-fs90r/ Must respect the pulse range in order not to damage servo. - + */ #include @@ -19,12 +19,12 @@ void setup() { Serial.begin(115200); fs90r.attach(servopin, 900, 2100); // attaches the servo on pin 9 to the servo object - // Be carefull to min and max values... + // Be careful to min and max values... } void loop() { val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023) - val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0 and 180, at 90, + val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0 and 180, at 90, // motor is stopped) Serial.print("val = "); diff --git a/libraries/Servo/src/Servo.h b/libraries/Servo/src/Servo.h index 27001e8368..c85e6209d6 100644 --- a/libraries/Servo/src/Servo.h +++ b/libraries/Servo/src/Servo.h @@ -27,7 +27,7 @@ disabled when the first servo is attached. Timers are seized as needed in groups of 12 servos - 24 servos use two timers, 48 servos will use four. - The sequence used to sieze timers is defined in timers.h + The sequence used to seize timers is defined in timers.h The methods are: diff --git a/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino b/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino index 1db997c0c7..fe288f9bd3 100644 --- a/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino +++ b/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino @@ -1,5 +1,5 @@ /* - Software serial multple serial test + Software serial multiple serial test Receives from the hardware serial, sends to software serial. Receives from software serial, sends to hardware serial. diff --git a/libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino b/libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino index b386edef65..ca4d7088d5 100644 --- a/libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino +++ b/libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino @@ -1,5 +1,5 @@ /* - Software serial multple serial test + Software serial multiple serial test Receives from the two software serial ports, sends to the hardware serial port. @@ -48,7 +48,7 @@ void setup() { } void loop() { - // By default, the last intialized port is listening. + // By default, the last initialized port is listening. // when you want to listen on a port, explicitly select it: portOne.listen(); Serial.println("Data from port one:"); diff --git a/libraries/SoftwareSerial/src/SoftwareSerial.cpp b/libraries/SoftwareSerial/src/SoftwareSerial.cpp index 25c7839d01..d9ad70e323 100644 --- a/libraries/SoftwareSerial/src/SoftwareSerial.cpp +++ b/libraries/SoftwareSerial/src/SoftwareSerial.cpp @@ -36,7 +36,7 @@ // #include "SoftwareSerial.h" -#define OVERSAMPLE 3 // in RX, Timer will generate interruption OVERSAMPLE time during a bit. Thus OVERSAMPLE ticks in a bit. (interrupt not synchonized with edge). +#define OVERSAMPLE 3 // in RX, Timer will generate interruption OVERSAMPLE time during a bit. Thus OVERSAMPLE ticks in a bit. (interrupt not synchronized with edge). // defined in bit-periods #define HALFDUPLEX_SWITCH_DELAY 5 @@ -93,7 +93,7 @@ #endif #endif // -// Statics +// Static // HardwareTimer SoftwareSerial::timer(TIMER_SERIAL); SoftwareSerial *SoftwareSerial::active_listener = nullptr; @@ -272,7 +272,7 @@ inline void SoftwareSerial::recv() _buffer_overflow = true; } } - // Full trame received. Resart wainting for sart bit at next interrupt + // Full trame received. Restart waiting for start bit at next interrupt rx_tick_cnt = 1; rx_bit_cnt = -1; } else { diff --git a/libraries/SrcWrapper/src/stm32/analog.cpp b/libraries/SrcWrapper/src/stm32/analog.cpp index 5398b854c5..18b026fad8 100644 --- a/libraries/SrcWrapper/src/stm32/analog.cpp +++ b/libraries/SrcWrapper/src/stm32/analog.cpp @@ -900,7 +900,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution) AdcHandle.Init.Overrun = ADC_OVR_DATA_OVERWRITTEN; /* DR register is overwritten with the last conversion result in case of overrun */ #endif #ifdef ADC_LEFTBITSHIFT_NONE - AdcHandle.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE; /* No bit shift left applied on the final ADC convesion data */ + AdcHandle.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE; /* No bit shift left applied on the final ADC conversion data */ #endif #if defined(STM32F0xx) @@ -1015,7 +1015,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution) return 0; } - /* Check if the continous conversion of regular channel is finished */ + /* Check if the continuous conversion of regular channel is finished */ if ((HAL_ADC_GetState(&AdcHandle) & HAL_ADC_STATE_REG_EOC) == HAL_ADC_STATE_REG_EOC) { /*##-5- Get the converted value of regular channel ########################*/ uhADCxConvertedValue = HAL_ADC_GetValue(&AdcHandle); diff --git a/libraries/SrcWrapper/src/stm32/pinmap.c b/libraries/SrcWrapper/src/stm32/pinmap.c index 4c356ed26e..2ffbfcb425 100644 --- a/libraries/SrcWrapper/src/stm32/pinmap.c +++ b/libraries/SrcWrapper/src/stm32/pinmap.c @@ -98,7 +98,7 @@ static void configure_dualpad_switch(PinName pin, int function, uint32_t LL_Anal /** * In case of dual pad, determine whether gpio needs to be configured - * pLL_AnalogSwitch: pointer used to retrun LL define to be used to configure + * pLL_AnalogSwitch: pointer used to return LL define to be used to configure * Analog switch * return: true when gpio must be configured */ @@ -147,7 +147,7 @@ bool pin_in_pinmap(PinName pin, const PinMap *map) */ void pin_function(PinName pin, int function) { - /* Get the pin informations */ + /* Get the pin information */ uint32_t mode = STM_PIN_FUNCTION(function); uint32_t afnum = STM_PIN_AFNUM(function); uint32_t port = STM_PORT(pin); @@ -376,6 +376,6 @@ void *pinmap_merge_peripheral(void *a, void *b) return a; } - // mis-match error case + // mismatch error case return NP; } diff --git a/libraries/SrcWrapper/src/syscalls.c b/libraries/SrcWrapper/src/syscalls.c index a2a4bfc92d..bee85bfc99 100644 --- a/libraries/SrcWrapper/src/syscalls.c +++ b/libraries/SrcWrapper/src/syscalls.c @@ -40,7 +40,7 @@ caddr_t _sbrk(int incr) errno = ENOMEM; return (caddr_t) -1; } - /* Ensure to keep minimun stack size defined in the linker script */ + /* Ensure to keep minimum stack size defined in the linker script */ if (heap_end + incr >= (char *)(&_estack - &_Min_Stack_Size)) { errno = ENOMEM; return (caddr_t) -1; diff --git a/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino b/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino index 9c41c18f16..61b5bc193e 100644 --- a/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino +++ b/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino @@ -25,7 +25,7 @@ void loop() // step 1: instruct sensor to read echoes Wire.beginTransmission(112); // transmit to device #112 (0x70) // the address specified in the datasheet is 224 (0xE0) - // but i2c adressing uses the high 7 bits so it's 112 + // but i2c addressing uses the high 7 bits so it's 112 Wire.write(byte(0x00)); // sets register pointer to the command register (0x00) Wire.write(byte(0x50)); // command sensor to measure in "inches" (0x50) // use 0x51 for centimeters diff --git a/libraries/Wire/src/utility/twi.c b/libraries/Wire/src/utility/twi.c index e6477423f7..f433133243 100644 --- a/libraries/Wire/src/utility/twi.c +++ b/libraries/Wire/src/utility/twi.c @@ -44,7 +44,7 @@ extern "C" { #endif /* Private Defines */ -/// @brief I2C timout in tick unit +/// @brief I2C timeout in tick unit #ifndef I2C_TIMEOUT_TICK #define I2C_TIMEOUT_TICK 100 #endif diff --git a/platform.txt b/platform.txt index a9379c3173..e8485b080d 100644 --- a/platform.txt +++ b/platform.txt @@ -49,7 +49,7 @@ compiler.ldflags= compiler.size.cmd=arm-none-eabi-size compiler.define=-DARDUINO= -# These can be overriden in boards.txt +# These can be overridden in boards.txt build.extra_flags= build.bootloader_flags= build.ldscript=ldscript.ld diff --git a/system/STM32F0xx/stm32f0xx_hal_conf_default.h b/system/STM32F0xx/stm32f0xx_hal_conf_default.h index ef5f9b549b..8450eef0fe 100644 --- a/system/STM32F0xx/stm32f0xx_hal_conf_default.h +++ b/system/STM32F0xx/stm32f0xx_hal_conf_default.h @@ -1,7 +1,7 @@ /** ****************************************************************************** * @file stm32f0xx_hal_conf_default.h - * @brief HAL defalt configuration file. + * @brief HAL default configuration file. ****************************************************************************** * @attention * diff --git a/variants/STM32L4xx/L475V(C-E-G)T_L476V(C-E-G)T_L486VGT/variant_B_L475E_IOT01A.cpp b/variants/STM32L4xx/L475V(C-E-G)T_L476V(C-E-G)T_L486VGT/variant_B_L475E_IOT01A.cpp index 438d0d82fd..a6f66adced 100644 --- a/variants/STM32L4xx/L475V(C-E-G)T_L476V(C-E-G)T_L486VGT/variant_B_L475E_IOT01A.cpp +++ b/variants/STM32L4xx/L475V(C-E-G)T_L476V(C-E-G)T_L486VGT/variant_B_L475E_IOT01A.cpp @@ -153,7 +153,7 @@ WEAK void SystemClock_Config(void) __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW); /* MSI is enabled after System reset, activate PLL with MSI as source */ - /* NOTE: A limitation is present on the MB1297C-01 board. The reset connexion + /* NOTE: A limitation is present on the MB1297C-01 board. The reset connection between STM32L4 and the ST-LINK MCU (STM32F103) is not present even if schematics are correct. The software reset is available so that the hardware missing reset may not be necessary. If the hardware reset is needed, a simple