fix spelling

This commit is contained in:
hathach 2023-03-17 17:27:34 +07:00
parent f14b4ba30a
commit 25d802532c
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
23 changed files with 33 additions and 29 deletions

View File

@ -7,3 +7,5 @@ dout
mot
te
attch
endianess
pris

View File

@ -7,4 +7,4 @@ exclude-file = .codespell/exclude-file.txt
check-filenames =
check-hidden =
count =
skip = .cproject,./.git,./hw/mcu,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./test/unit-test/vendor,./tests_obsolete,./tools/uf2
skip = *.rb,.cproject,.git,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./tests_obsolete

View File

@ -15,6 +15,8 @@ repos:
rev: v2.2.4
hooks:
- id: codespell
args: [-w]
exclude: ^lib/
- repo: local
hooks:

View File

@ -954,11 +954,11 @@ typedef struct { /*!< (@ 0x50030A00) LRA Structur
__IOM uint32_t LRA_FLT_COEF3_REG; /*!< (@ 0x00000034) LRA Filter Coefficient Register */
__IOM uint32_t LRA_BRD_LS_REG; /*!< (@ 0x00000038) LRA Bridge Register */
__IOM uint32_t LRA_BRD_HS_REG; /*!< (@ 0x0000003C) LRA Bridge Register */
__IOM uint32_t LRA_BRD_STAT_REG; /*!< (@ 0x00000040) LRA Bridge Staus Register */
__IOM uint32_t LRA_BRD_STAT_REG; /*!< (@ 0x00000040) LRA Bridge Status Register */
__IOM uint32_t LRA_ADC_CTRL1_REG; /*!< (@ 0x00000044) General Purpose ADC Control Register */
__IM uint32_t RESERVED[2];
__IOM uint32_t LRA_ADC_RESULT_REG; /*!< (@ 0x00000050) General Purpose ADC Result Register */
__IOM uint32_t LRA_LDO_REG; /*!< (@ 0x00000054) LRA LDO Regsiter */
__IOM uint32_t LRA_LDO_REG; /*!< (@ 0x00000054) LRA LDO Register */
__IOM uint32_t LRA_DFT_REG; /*!< (@ 0x00000058) LRA test Register */
} LRA_Type; /*!< Size = 92 (0x5c) */
@ -1043,7 +1043,7 @@ typedef struct { /*!< (@ 0x50000200) PDC Structur
__IOM uint32_t PDC_CTRL15_REG; /*!< (@ 0x0000003C) PDC control register */
__IM uint32_t RESERVED[16];
__IOM uint32_t PDC_ACKNOWLEDGE_REG; /*!< (@ 0x00000080) Clear a pending PDC bit */
__IOM uint32_t PDC_PENDING_REG; /*!< (@ 0x00000084) Shows any pending wakup event */
__IOM uint32_t PDC_PENDING_REG; /*!< (@ 0x00000084) Shows any pending wakeup event */
__IOM uint32_t PDC_PENDING_SNC_REG; /*!< (@ 0x00000088) Shows any pending IRQ to SNC */
__IOM uint32_t PDC_PENDING_CM33_REG; /*!< (@ 0x0000008C) Shows any pending IRQ to CM33 */
__IOM uint32_t PDC_PENDING_CMAC_REG; /*!< (@ 0x00000090) Shows any pending IRQ to CM33 */
@ -1752,8 +1752,8 @@ typedef struct { /*!< (@ 0x50000100) WAKEUP Struc
__IOM uint32_t WKUP_SELECT_P1_REG; /*!< (@ 0x00000018) select which inputs from P1 port can trigger
wkup counter */
__IM uint32_t RESERVED2[3];
__IOM uint32_t WKUP_POL_P0_REG; /*!< (@ 0x00000028) select the sesitivity polarity for each P0 input */
__IOM uint32_t WKUP_POL_P1_REG; /*!< (@ 0x0000002C) select the sesitivity polarity for each P1 input */
__IOM uint32_t WKUP_POL_P0_REG; /*!< (@ 0x00000028) select the sensitivity polarity for each P0 input */
__IOM uint32_t WKUP_POL_P1_REG; /*!< (@ 0x0000002C) select the sensitivity polarity for each P1 input */
__IM uint32_t RESERVED3[3];
__IOM uint32_t WKUP_STATUS_P0_REG; /*!< (@ 0x0000003C) Event status register for P0 */
__IOM uint32_t WKUP_STATUS_P1_REG; /*!< (@ 0x00000040) Event status register for P1 */

View File

@ -34,7 +34,7 @@ SystemInit(void)
__ISB();
#endif
/* Freez watchdog */
/* Freeze watchdog */
GPREG->SET_FREEZE_REG |= GPREG_SET_FREEZE_REG_FRZ_SYS_WDOG_Msk;
/* Initialize power domains (disable radio only) */
CRG_TOP->PMU_CTRL_REG = CRG_TOP_PMU_CTRL_REG_RADIO_SLEEP_Msk;

View File

@ -286,7 +286,7 @@ typedef struct
/**@brief L2CAP event structure. */
typedef struct
{
uint16_t conn_handle; /**< Connection Handle on which the event occured. */
uint16_t conn_handle; /**< Connection Handle on which the event occurred. */
uint16_t local_cid; /**< Local Channel ID of the L2CAP channel, or
@ref BLE_L2CAP_CID_INVALID if not present. */
union

View File

@ -46,7 +46,7 @@ import xmodem
import_serial_module = True
# When SDK release, plase set SDK_RELEASE as True.
# When SDK release, please set SDK_RELEASE as True.
SDK_RELEASE = False
if SDK_RELEASE :
@ -508,7 +508,7 @@ def main():
do_wait_reset = True
if ConfigArgs.AUTO_RESET:
if subprocess.call("cd " + sys.path[0] + "; ./reset_board.sh", shell=True) == 0:
print("auto reset board sucess!!")
print("auto reset board success!!")
do_wait_reset = False
bootrom_msg = writer.cancel_autoboot()
@ -536,7 +536,7 @@ def main():
# Remove files
if ConfigArgs.ERASE_NAME :
print(">>> Remove exisiting files ...")
print(">>> Remove existing files ...")
writer.delete_files(ConfigArgs.ERASE_NAME)
# Install files

View File

@ -147,7 +147,7 @@ class XMODEM(object):
>>> modem = XMODEM(getc, putc)
:param getc: Function to retreive bytes from a stream
:param getc: Function to retrieve bytes from a stream
:type getc: callable
:param putc: Function to transmit bytes to a stream
:type putc: callable
@ -215,7 +215,7 @@ class XMODEM(object):
>>> print modem.send(stream)
True
Returns ``True`` upon succesful transmission or ``False`` in case of
Returns ``True`` upon successful transmission or ``False`` in case of
failure.
:param stream: The stream object to send data from.

View File

@ -86,7 +86,7 @@ unless (project_found)
end
end
# Genarate gitkeep in test support path
# Generate gitkeep in test support path
FileUtils.touch(File.join(test_support_path, '.gitkeep'))
# If documentation requested, create a place to dump them and do so

View File

@ -77,7 +77,7 @@ module Ceedling
# * The gem name must be prefixed with 'ceedling-' followed by the plugin
# name (ex. 'ceedling-bullseye')
#
# * The contents of the plugin must be isntalled into a subdirectory of
# * The contents of the plugin must be installed into a subdirectory of
# the gem with the same name as the plugin (ex. 'bullseye/')
#
# === Arguments

View File

@ -181,7 +181,7 @@ class PreprocessinatorIncludesHandler
end
# If we found a real file, delete it from the array and return it,
# otherwise return nil. Since nil is falsy this has the effect of making
# find_all return only the annotated filess for which a real file was
# find_all return only the annotated files for which a real file was
# found/deleted
idx ? real_files.delete_at(idx) : nil
end.compact

View File

@ -9,7 +9,7 @@ rule(/#{PROJECT_TEST_PREPROCESS_FILES_PATH}\/.+/ => [
end
]) do |file|
if (not @ceedling[:configurator].project_use_deep_dependencies)
raise 'ERROR: Ceedling preprocessing rule invoked though neccessary auxiliary dependency support not enabled.'
raise 'ERROR: Ceedling preprocessing rule invoked though necessary auxiliary dependency support not enabled.'
end
@ceedling[:generator].generate_preprocessed_file(TEST_SYM, file.source)
end

View File

@ -7,7 +7,7 @@ end
##
# Class containing system utility funcions.
# Class containing system utility functions.
class SystemUtils
constructor :system_wrapper

View File

@ -113,7 +113,7 @@ end
# Add any artifact:include or :source folders to our release & test includes paths so linking and mocking work.
@ceedling[DEPENDENCIES_SYM].add_headers_and_sources()
# Add tasks for building or cleaning ALL depencies
# Add tasks for building or cleaning ALL dependencies
namespace DEPENDENCIES_SYM do
desc "Deploy missing dependencies."
task :deploy => DEPENDENCIES_LIBRARIES.map{|deplib| "#{DEPENDENCIES_SYM}:deploy:#{@ceedling[DEPENDENCIES_SYM].get_name(deplib)}"}

View File

@ -34,7 +34,7 @@ In the `:plugins` configuration, add `fake_function_framework` to the list of en
- module_generator
- fake_function_framework
```
*Note that you could put the plugin source in some other loaction.
*Note that you could put the plugin source in some other location.
In that case you'd need to add a new path the `:load_paths`.*
## How to use it

View File

@ -33,7 +33,7 @@
# in order to add common defines:
# 1) remove the trailing [] from the :common: section
# 2) add entries to the :common: section (e.g. :test: has TEST defined)
:commmon: &common_defines []
:common: &common_defines []
:test:
- *common_defines
- TEST

View File

@ -41,7 +41,7 @@ test_whenThePowerReadingIsLessThan5_thenTheStatusLedIsNotTurnedOn(void)
}
/*
Test that a single function was called with the correct arugment.
Test that a single function was called with the correct argument.
*/
void
test_whenTheVolumeKnobIsMaxed_thenVolumeDisplayIsSetTo11(void)

View File

@ -23,7 +23,7 @@ class FakeFunctionFramework < Plugin
# all mocks linked into the test.
File.open(arg_hash[:runner_file], 'a') do |f|
f.puts
f.puts "//=======Defintions of FFF variables====="
f.puts "//=======Definitions of FFF variables====="
f.puts %{#include "fff.h"}
f.puts "DEFINE_FFF_GLOBALS;"
end

View File

@ -138,7 +138,7 @@ class ReportGeneratorReportinator
# Removing trailing ';' after the last report type.
args = args.chomp(";")
# Append a space seperator after the report type.
# Append a space separator after the report type.
args += "\" "
end

View File

@ -82,7 +82,7 @@ by adding to the `:includes` array. For example:
### Boilerplates
You can specify the actual boilerplate used for each of your files. This is the handy place to
put that corporate copyright notice (or maybe a copyleft notice, if that's your perference?)
put that corporate copyright notice (or maybe a copyleft notice, if that's your preference?)
```
:module_generator:

View File

@ -119,7 +119,7 @@ class CMockHeaderParser
square_bracket_pair_regex_format = /\{[^\{\}]*\}/ # Regex to match one whole block enclosed by two square brackets
# Convert user provided string patterns to regex
# Use word bounderies before and after the user regex to limit matching to actual word iso part of a word
# Use word boundaries before and after the user regex to limit matching to actual word iso part of a word
@inline_function_patterns.each do |user_format_string|
user_regex = Regexp.new(user_format_string)
word_boundary_before_user_regex = /\b/
@ -258,7 +258,7 @@ class CMockHeaderParser
source.gsub!(/\s*=\s*['"a-zA-Z0-9_\.]+\s*/, '') # remove default value statements from argument lists
source.gsub!(/^(?:[\w\s]*\W)?typedef\W[^;]*/m, '') # remove typedef statements
source.gsub!(/\)(\w)/, ') \1') # add space between parenthese and alphanumeric
source.gsub!(/\)(\w)/, ') \1') # add space between parentheses and alphanumeric
source.gsub!(/(^|\W+)(?:#{@c_strippables.join('|')})(?=$|\W+)/, '\1') unless @c_strippables.empty? # remove known attributes slated to be stripped
# scan standalone function pointers and remove them, because they can just be ignored

View File

@ -114,7 +114,7 @@ class UnityTestRunnerGenerator
# @ is not a valid C character, so there should be no clashes with files genuinely containing these markers
substring_subs = { '{' => '@co@', '}' => '@cc@', ';' => '@ss@', '/' => '@fs@' }
substring_re = Regexp.union(substring_subs.keys)
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwords
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwards
substring_unsubs['@quote@'] = '\\"'
substring_unsubs['@apos@'] = '\\\''
substring_unre = Regexp.union(substring_unsubs.keys)

View File

@ -13,7 +13,7 @@
#define PROGMEM
#endif
/* If omitted from header, declare overrideable prototypes here so they're ready for use */
/* If omitted from header, declare overridable prototypes here so they're ready for use */
#ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
void UNITY_OUTPUT_CHAR(int);
#endif