Skip to content

Commit 25d8025

Browse files
committed
fix spelling
1 parent f14b4ba commit 25d8025

File tree

23 files changed

+33
-29
lines changed

23 files changed

+33
-29
lines changed

.codespell/ignore-words.txt

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ dout
77
mot
88
te
99
attch
10+
endianess
11+
pris

.codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ exclude-file = .codespell/exclude-file.txt
77
check-filenames =
88
check-hidden =
99
count =
10-
skip = .cproject,./.git,./hw/mcu,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./test/unit-test/vendor,./tests_obsolete,./tools/uf2
10+
skip = *.rb,.cproject,.git,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./tests_obsolete

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ repos:
1515
rev: v2.2.4
1616
hooks:
1717
- id: codespell
18+
args: [-w]
19+
exclude: ^lib/
1820

1921
- repo: local
2022
hooks:

hw/mcu/dialog/da1469x/SDK_10.0.8.105/sdk/bsp/include/DA1469xAB.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,11 @@ typedef struct { /*!< (@ 0x50030A00) LRA Structur
954954
__IOM uint32_t LRA_FLT_COEF3_REG; /*!< (@ 0x00000034) LRA Filter Coefficient Register */
955955
__IOM uint32_t LRA_BRD_LS_REG; /*!< (@ 0x00000038) LRA Bridge Register */
956956
__IOM uint32_t LRA_BRD_HS_REG; /*!< (@ 0x0000003C) LRA Bridge Register */
957-
__IOM uint32_t LRA_BRD_STAT_REG; /*!< (@ 0x00000040) LRA Bridge Staus Register */
957+
__IOM uint32_t LRA_BRD_STAT_REG; /*!< (@ 0x00000040) LRA Bridge Status Register */
958958
__IOM uint32_t LRA_ADC_CTRL1_REG; /*!< (@ 0x00000044) General Purpose ADC Control Register */
959959
__IM uint32_t RESERVED[2];
960960
__IOM uint32_t LRA_ADC_RESULT_REG; /*!< (@ 0x00000050) General Purpose ADC Result Register */
961-
__IOM uint32_t LRA_LDO_REG; /*!< (@ 0x00000054) LRA LDO Regsiter */
961+
__IOM uint32_t LRA_LDO_REG; /*!< (@ 0x00000054) LRA LDO Register */
962962
__IOM uint32_t LRA_DFT_REG; /*!< (@ 0x00000058) LRA test Register */
963963
} LRA_Type; /*!< Size = 92 (0x5c) */
964964

@@ -1043,7 +1043,7 @@ typedef struct { /*!< (@ 0x50000200) PDC Structur
10431043
__IOM uint32_t PDC_CTRL15_REG; /*!< (@ 0x0000003C) PDC control register */
10441044
__IM uint32_t RESERVED[16];
10451045
__IOM uint32_t PDC_ACKNOWLEDGE_REG; /*!< (@ 0x00000080) Clear a pending PDC bit */
1046-
__IOM uint32_t PDC_PENDING_REG; /*!< (@ 0x00000084) Shows any pending wakup event */
1046+
__IOM uint32_t PDC_PENDING_REG; /*!< (@ 0x00000084) Shows any pending wakeup event */
10471047
__IOM uint32_t PDC_PENDING_SNC_REG; /*!< (@ 0x00000088) Shows any pending IRQ to SNC */
10481048
__IOM uint32_t PDC_PENDING_CM33_REG; /*!< (@ 0x0000008C) Shows any pending IRQ to CM33 */
10491049
__IOM uint32_t PDC_PENDING_CMAC_REG; /*!< (@ 0x00000090) Shows any pending IRQ to CM33 */
@@ -1752,8 +1752,8 @@ typedef struct { /*!< (@ 0x50000100) WAKEUP Struc
17521752
__IOM uint32_t WKUP_SELECT_P1_REG; /*!< (@ 0x00000018) select which inputs from P1 port can trigger
17531753
wkup counter */
17541754
__IM uint32_t RESERVED2[3];
1755-
__IOM uint32_t WKUP_POL_P0_REG; /*!< (@ 0x00000028) select the sesitivity polarity for each P0 input */
1756-
__IOM uint32_t WKUP_POL_P1_REG; /*!< (@ 0x0000002C) select the sesitivity polarity for each P1 input */
1755+
__IOM uint32_t WKUP_POL_P0_REG; /*!< (@ 0x00000028) select the sensitivity polarity for each P0 input */
1756+
__IOM uint32_t WKUP_POL_P1_REG; /*!< (@ 0x0000002C) select the sensitivity polarity for each P1 input */
17571757
__IM uint32_t RESERVED3[3];
17581758
__IOM uint32_t WKUP_STATUS_P0_REG; /*!< (@ 0x0000003C) Event status register for P0 */
17591759
__IOM uint32_t WKUP_STATUS_P1_REG; /*!< (@ 0x00000040) Event status register for P1 */

hw/mcu/dialog/da1469x/src/system_da1469x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SystemInit(void)
3434
__ISB();
3535
#endif
3636

37-
/* Freez watchdog */
37+
/* Freeze watchdog */
3838
GPREG->SET_FREEZE_REG |= GPREG_SET_FREEZE_REG_FRZ_SYS_WDOG_Msk;
3939
/* Initialize power domains (disable radio only) */
4040
CRG_TOP->PMU_CTRL_REG = CRG_TOP_PMU_CTRL_REG_RADIO_SLEEP_Msk;

hw/mcu/nordic/nrf5x/s140_nrf52_6.1.1_API/include/ble_l2cap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ typedef struct
286286
/**@brief L2CAP event structure. */
287287
typedef struct
288288
{
289-
uint16_t conn_handle; /**< Connection Handle on which the event occured. */
289+
uint16_t conn_handle; /**< Connection Handle on which the event occurred. */
290290
uint16_t local_cid; /**< Local Channel ID of the L2CAP channel, or
291291
@ref BLE_L2CAP_CID_INVALID if not present. */
292292
union

hw/mcu/sony/cxd56/tools/flash_writer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
import_serial_module = True
4848

49-
# When SDK release, plase set SDK_RELEASE as True.
49+
# When SDK release, please set SDK_RELEASE as True.
5050
SDK_RELEASE = False
5151

5252
if SDK_RELEASE :
@@ -508,7 +508,7 @@ def main():
508508
do_wait_reset = True
509509
if ConfigArgs.AUTO_RESET:
510510
if subprocess.call("cd " + sys.path[0] + "; ./reset_board.sh", shell=True) == 0:
511-
print("auto reset board sucess!!")
511+
print("auto reset board success!!")
512512
do_wait_reset = False
513513
bootrom_msg = writer.cancel_autoboot()
514514

@@ -536,7 +536,7 @@ def main():
536536

537537
# Remove files
538538
if ConfigArgs.ERASE_NAME :
539-
print(">>> Remove exisiting files ...")
539+
print(">>> Remove existing files ...")
540540
writer.delete_files(ConfigArgs.ERASE_NAME)
541541

542542
# Install files

hw/mcu/sony/cxd56/tools/xmodem.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class XMODEM(object):
147147
>>> modem = XMODEM(getc, putc)
148148
149149
150-
:param getc: Function to retreive bytes from a stream
150+
:param getc: Function to retrieve bytes from a stream
151151
:type getc: callable
152152
:param putc: Function to transmit bytes to a stream
153153
:type putc: callable
@@ -215,7 +215,7 @@ def send(self, stream, retry=32, timeout=360, quiet=0, callback=None):
215215
>>> print modem.send(stream)
216216
True
217217
218-
Returns ``True`` upon succesful transmission or ``False`` in case of
218+
Returns ``True`` upon successful transmission or ``False`` in case of
219219
failure.
220220
221221
:param stream: The stream object to send data from.

test/unit-test/vendor/ceedling/bin/ceedling

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ unless (project_found)
8686
end
8787
end
8888

89-
# Genarate gitkeep in test support path
89+
# Generate gitkeep in test support path
9090
FileUtils.touch(File.join(test_support_path, '.gitkeep'))
9191

9292
# If documentation requested, create a place to dump them and do so

test/unit-test/vendor/ceedling/lib/ceedling.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def self.load_project(options = {})
7777
# * The gem name must be prefixed with 'ceedling-' followed by the plugin
7878
# name (ex. 'ceedling-bullseye')
7979
#
80-
# * The contents of the plugin must be isntalled into a subdirectory of
80+
# * The contents of the plugin must be installed into a subdirectory of
8181
# the gem with the same name as the plugin (ex. 'bullseye/')
8282
#
8383
# === Arguments

test/unit-test/vendor/ceedling/lib/ceedling/preprocessinator_includes_handler.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def extract_full_path_dependencies(dependencies)
181181
end
182182
# If we found a real file, delete it from the array and return it,
183183
# otherwise return nil. Since nil is falsy this has the effect of making
184-
# find_all return only the annotated filess for which a real file was
184+
# find_all return only the annotated files for which a real file was
185185
# found/deleted
186186
idx ? real_files.delete_at(idx) : nil
187187
end.compact

test/unit-test/vendor/ceedling/lib/ceedling/rules_preprocess.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rule(/#{PROJECT_TEST_PREPROCESS_FILES_PATH}\/.+/ => [
99
end
1010
]) do |file|
1111
if (not @ceedling[:configurator].project_use_deep_dependencies)
12-
raise 'ERROR: Ceedling preprocessing rule invoked though neccessary auxiliary dependency support not enabled.'
12+
raise 'ERROR: Ceedling preprocessing rule invoked though necessary auxiliary dependency support not enabled.'
1313
end
1414
@ceedling[:generator].generate_preprocessed_file(TEST_SYM, file.source)
1515
end

test/unit-test/vendor/ceedling/lib/ceedling/system_utils.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def deep_clone
77

88

99
##
10-
# Class containing system utility funcions.
10+
# Class containing system utility functions.
1111
class SystemUtils
1212

1313
constructor :system_wrapper

test/unit-test/vendor/ceedling/plugins/dependencies/dependencies.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ end
113113
# Add any artifact:include or :source folders to our release & test includes paths so linking and mocking work.
114114
@ceedling[DEPENDENCIES_SYM].add_headers_and_sources()
115115

116-
# Add tasks for building or cleaning ALL depencies
116+
# Add tasks for building or cleaning ALL dependencies
117117
namespace DEPENDENCIES_SYM do
118118
desc "Deploy missing dependencies."
119119
task :deploy => DEPENDENCIES_LIBRARIES.map{|deplib| "#{DEPENDENCIES_SYM}:deploy:#{@ceedling[DEPENDENCIES_SYM].get_name(deplib)}"}

test/unit-test/vendor/ceedling/plugins/fake_function_framework/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In the `:plugins` configuration, add `fake_function_framework` to the list of en
3434
- module_generator
3535
- fake_function_framework
3636
```
37-
*Note that you could put the plugin source in some other loaction.
37+
*Note that you could put the plugin source in some other location.
3838
In that case you'd need to add a new path the `:load_paths`.*
3939

4040
## How to use it

test/unit-test/vendor/ceedling/plugins/fake_function_framework/examples/fff_example/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# in order to add common defines:
3434
# 1) remove the trailing [] from the :common: section
3535
# 2) add entries to the :common: section (e.g. :test: has TEST defined)
36-
:commmon: &common_defines []
36+
:common: &common_defines []
3737
:test:
3838
- *common_defines
3939
- TEST

test/unit-test/vendor/ceedling/plugins/fake_function_framework/examples/fff_example/test/test_event_processor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test_whenThePowerReadingIsLessThan5_thenTheStatusLedIsNotTurnedOn(void)
4141
}
4242

4343
/*
44-
Test that a single function was called with the correct arugment.
44+
Test that a single function was called with the correct argument.
4545
*/
4646
void
4747
test_whenTheVolumeKnobIsMaxed_thenVolumeDisplayIsSetTo11(void)

test/unit-test/vendor/ceedling/plugins/fake_function_framework/lib/fake_function_framework.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def post_runner_generate(arg_hash)
2323
# all mocks linked into the test.
2424
File.open(arg_hash[:runner_file], 'a') do |f|
2525
f.puts
26-
f.puts "//=======Defintions of FFF variables====="
26+
f.puts "//=======Definitions of FFF variables====="
2727
f.puts %{#include "fff.h"}
2828
f.puts "DEFINE_FFF_GLOBALS;"
2929
end

test/unit-test/vendor/ceedling/plugins/gcov/lib/reportgenerator_reportinator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def args_builder(opts)
138138
# Removing trailing ';' after the last report type.
139139
args = args.chomp(";")
140140

141-
# Append a space seperator after the report type.
141+
# Append a space separator after the report type.
142142
args += "\" "
143143
end
144144

test/unit-test/vendor/ceedling/plugins/module_generator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ by adding to the `:includes` array. For example:
8282
### Boilerplates
8383

8484
You can specify the actual boilerplate used for each of your files. This is the handy place to
85-
put that corporate copyright notice (or maybe a copyleft notice, if that's your perference?)
85+
put that corporate copyright notice (or maybe a copyleft notice, if that's your preference?)
8686

8787
```
8888
:module_generator:

test/unit-test/vendor/ceedling/vendor/cmock/lib/cmock_header_parser.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def transform_inline_functions(source)
119119
square_bracket_pair_regex_format = /\{[^\{\}]*\}/ # Regex to match one whole block enclosed by two square brackets
120120

121121
# Convert user provided string patterns to regex
122-
# Use word bounderies before and after the user regex to limit matching to actual word iso part of a word
122+
# Use word boundaries before and after the user regex to limit matching to actual word iso part of a word
123123
@inline_function_patterns.each do |user_format_string|
124124
user_regex = Regexp.new(user_format_string)
125125
word_boundary_before_user_regex = /\b/
@@ -258,7 +258,7 @@ def import_source(source, parse_project, cpp = false)
258258

259259
source.gsub!(/\s*=\s*['"a-zA-Z0-9_\.]+\s*/, '') # remove default value statements from argument lists
260260
source.gsub!(/^(?:[\w\s]*\W)?typedef\W[^;]*/m, '') # remove typedef statements
261-
source.gsub!(/\)(\w)/, ') \1') # add space between parenthese and alphanumeric
261+
source.gsub!(/\)(\w)/, ') \1') # add space between parentheses and alphanumeric
262262
source.gsub!(/(^|\W+)(?:#{@c_strippables.join('|')})(?=$|\W+)/, '\1') unless @c_strippables.empty? # remove known attributes slated to be stripped
263263

264264
# scan standalone function pointers and remove them, because they can just be ignored

test/unit-test/vendor/ceedling/vendor/unity/auto/generate_test_runner.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def find_tests(source)
114114
# @ is not a valid C character, so there should be no clashes with files genuinely containing these markers
115115
substring_subs = { '{' => '@co@', '}' => '@cc@', ';' => '@ss@', '/' => '@fs@' }
116116
substring_re = Regexp.union(substring_subs.keys)
117-
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwords
117+
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwards
118118
substring_unsubs['@quote@'] = '\\"'
119119
substring_unsubs['@apos@'] = '\\\''
120120
substring_unre = Regexp.union(substring_unsubs.keys)

test/unit-test/vendor/ceedling/vendor/unity/src/unity.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define PROGMEM
1414
#endif
1515

16-
/* If omitted from header, declare overrideable prototypes here so they're ready for use */
16+
/* If omitted from header, declare overridable prototypes here so they're ready for use */
1717
#ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
1818
void UNITY_OUTPUT_CHAR(int);
1919
#endif

0 commit comments

Comments
 (0)