Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit c26552d

Browse files
authored
Fix Codespell complaints
1 parent 430d337 commit c26552d

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Supposing the STM32 stm32 core version is 2.2.0. These files must be copied into
352352
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7.
353353

354354
Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz,
355-
theses files must be copied into the corresponding directory:
355+
these files must be copied into the corresponding directory:
356356

357357
- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/system/STM32F4xx/stm32f4xx_hal_conf_default.h`
358358
- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/system/STM32F7xx/stm32f7xx_hal_conf_default.h`
@@ -368,7 +368,7 @@ Supposing the STM32 stm32 core version is 2.2.0. These files must be copied into
368368
- `~/.arduino15/packages/STM32/hardware/stm32/2.2.0/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h` for Nucleo-64 NUCLEO_L053R8.
369369

370370
Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz,
371-
theses files must be copied into the corresponding directory:
371+
these files must be copied into the corresponding directory:
372372

373373
- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/NUCLEO_F767ZI/variant.h`
374374
- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h`
@@ -631,7 +631,7 @@ To use SPI2 or any custom SPI
631631

632632
**The default CS/SS pin is 10 for all boards, and is configurable in code.**
633633

634-
If the default pin is not corect, select another CS/SS pin (e.e. D22) to use as follows:
634+
If the default pin is not correct, select another CS/SS pin (e.e. D22) to use as follows:
635635

636636
```cpp
637637
// To override the default CS/SS pin. Don't use unless you know exactly which pin to use
@@ -1863,7 +1863,7 @@ EthernetWebServer_SSL_STM32 v1.6.0
18631863
You're connected to the network, IP = 192.168.2.96
18641864
Attempting MQTT connection to broker.emqx.io...connected
18651865
Published connection message successfully!
1866-
Subcribed to: STM32_Sub
1866+
Subscribed to: STM32_Sub
18671867
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 6990
18681868
Message arrived [STM32_Pub] Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 6990
18691869
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 11992
@@ -1898,7 +1898,7 @@ EthernetWebServer_SSL_STM32 v1.6.0
18981898
You're connected to the network, IP = 192.168.2.107
18991899
Attempting MQTT connection to broker.emqx.io...connected
19001900
Published connection message successfully!
1901-
Subcribed to: STM32_Sub
1901+
Subscribed to: STM32_Sub
19021902
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 5001
19031903
Message arrived [STM32_Pub] Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 5001
19041904
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex on NUCLEO_F767ZI, millis = 10007
@@ -1934,7 +1934,7 @@ esp32-sniffer/12345678/ble
19341934
Attempting MQTT connection to mqtt.thingstream.io
19351935
...connected
19361936
Published connection message successfully!
1937-
Subcribed to: esp32-sniffer/12345678/ble
1937+
Subscribed to: esp32-sniffer/12345678/ble
19381938
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
19391939
MQTT Message receive [esp32-sniffer/12345678/ble] Hello from MQTTS_ThingStream on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
19401940
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
@@ -1968,7 +1968,7 @@ esp32-sniffer/12345678/ble
19681968
Attempting MQTT connection to mqtt.thingstream.io
19691969
...connected
19701970
Published connection message successfully!
1971-
Subcribed to: esp32-sniffer/12345678/ble
1971+
Subscribed to: esp32-sniffer/12345678/ble
19721972
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream_ThingStream on NUCLEO_F767ZI with ENC28J60 & EthernetENC Library
19731973
MQTT Message receive [esp32-sniffer/12345678/ble] Hello from MQTTS_ThingStream_ThingStream on NUCLEO_F767ZI with ENC28J60 & EthernetENC Library
19741974
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream_ThingStream on NUCLEO_F767ZI with ENC28J60 & EthernetENC Library
@@ -2001,7 +2001,7 @@ esp32-sniffer/12345678/ble
20012001
Attempting MQTT connection to mqtt.thingstream.io
20022002
...connected
20032003
Published connection message successfully!
2004-
Subcribed to: esp32-sniffer/12345678/ble
2004+
Subscribed to: esp32-sniffer/12345678/ble
20052005
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on NUCLEO_F767ZI with W5x00 & Ethernet_Generic Library
20062006
MQTT Message receive [esp32-sniffer/12345678/ble] Hello from MQTTS_ThingStream on NUCLEO_F767ZI with W5x00 & Ethernet_Generic Library
20072007
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on NUCLEO_F767ZI with W5x00 & Ethernet_Generic Library
@@ -2026,7 +2026,7 @@ esp32-sniffer/12345678/ble
20262026
Attempting MQTT connection to mqtt.thingstream.io
20272027
...connected
20282028
Published connection message successfully!
2029-
Subcribed to: esp32-sniffer/12345678/ble
2029+
Subscribed to: esp32-sniffer/12345678/ble
20302030
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on BLACK_F407VE with LAN8720 Ethernet & STM32Ethernet Library
20312031
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on BLACK_F407VE with LAN8720 Ethernet & STM32Ethernet Library
20322032
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on BLACK_F407VE with LAN8720 Ethernet & STM32Ethernet Library
@@ -2128,7 +2128,7 @@ EthernetWebServer_SSL_STM32 v1.6.0
21282128
You're connected to the network, IP = 192.168.2.138
21292129
Attempting MQTT connection to broker.emqx.io...connected
21302130
Published connection message successfully!
2131-
Subcribed to: STM32_Sub
2131+
Subscribed to: STM32_Sub
21322132
Message Send : STM32_Pub => Hello from MQTTClient_SSL_LAN8720 on BLACK_F407VE
21332133
Message arrived [STM32_Pub] Hello from MQTTClient_SSL_LAN8720 on BLACK_F407VE
21342134
Message Send : STM32_Pub => Hello from MQTTClient_SSL_LAN8720 on BLACK_F407VE
@@ -2152,7 +2152,7 @@ EthernetWebServer_SSL_STM32 v1.6.0
21522152
You're connected to the network, IP = 192.168.2.142
21532153
Attempting MQTT connection to broker.emqx.io...connected
21542154
Published connection message successfully!
2155-
Subcribed to: STM32_Sub
2155+
Subscribed to: STM32_Sub
21562156
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex_LAN8720 on BLACK_F407VE, millis = 6546
21572157
Message arrived [STM32_Pub] Hello from MQTTClient_SSL_Complex_LAN8720 on BLACK_F407VE, millis = 6546
21582158
Message Send : STM32_Pub => Hello from MQTTClient_SSL_Complex_LAN8720 on BLACK_F407VE, millis = 11549

tools/pycert_bearssl/cert_util.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
CERT_PATTERN = re.compile("^\-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-[a-z,A-Z,0-9,\n,\/,+]+={0,2}\n\-\-\-\-\-END CERTIFICATE-\-\-\-\-", re.MULTILINE)
2525

26-
# Default name prefixes for varibles used in the hearder autogeneration
26+
# Default name prefixes for variables used in the hearder autogeneration
2727
# Autogenerator will follow these names with a number
2828
# e.g. "TA_DN0"
2929
# Distinguished name array prefix
@@ -78,8 +78,8 @@
7878
# Template that defines a static array of bytes
7979
# This takes in a few named parameters:
8080
# - ray_type: The type (int, unsigned char) to use for the static array
81-
# - ray_name: The varible name of the static array
82-
# - ray_data: The comma seperated data of the array (ex. "0x12, 0x34, ...")
81+
# - ray_name: The variable name of the static array
82+
# - ray_data: The comma separated data of the array (ex. "0x12, 0x34, ...")
8383
CRAY_TEMPLATE = """\
8484
static const {ray_type} {ray_name}[] = {{
8585
{ray_data}
@@ -90,8 +90,8 @@
9090
# This takes in a few named parameters:
9191
# - ta_dn_name: The name of the static byte array containing the distunguished
9292
# name of the certificate.
93-
# - rsa_number_name: Varible name of the static array containing the RSA number
94-
# - rsa_exp_name: Varible name of the static array containing the RSA exponent
93+
# - rsa_number_name: variable name of the static array containing the RSA number
94+
# - rsa_exp_name: variable name of the static array containing the RSA exponent
9595
CROOTCA_TEMPLATE = """\
9696
{{
9797
{{ (unsigned char *){ta_dn_name}, sizeof {ta_dn_name} }},
@@ -110,8 +110,8 @@
110110
# This takes in a few named parameters:
111111
# - ta_dn_name: The name of the static byte array containing the distunguished
112112
# name of the certificate.
113-
# - ec_number_name: Varible name of the static array containing ec public key
114-
# - ec_curve_name: Varible name of the enum that describes curve type
113+
# - ec_number_name: variable name of the static array containing ec public key
114+
# - ec_curve_name: variable name of the enum that describes curve type
115115
CROOTCA_EC_TEMPLATE = """\
116116
{{
117117
{{ (unsigned char *){ta_dn_name}, sizeof {ta_dn_name} }},
@@ -219,7 +219,7 @@ def decribe_cert_object(cert, cert_num, domain=None):
219219
x509 object, domain should be a string name, and cert_num should be
220220
an integer.
221221
"""
222-
# get the label from the subject feild on the certificate
222+
# get the label from the subject field on the certificate
223223
label = ""
224224
com = dict(cert.get_subject().get_components())
225225
if b'CN' in com:
@@ -228,7 +228,7 @@ def decribe_cert_object(cert, cert_num, domain=None):
228228
label = com[b'OU'].decode("utf-8")
229229
elif b'O' in com:
230230
label = com[b'O'].decode("utf-8")
231-
# return the formated string
231+
# return the formatted string
232232
crypto = cert.to_cryptography()
233233
out_str = CCERT_DESC_TEMPLATE.format(
234234
cert_num=cert_num,
@@ -327,7 +327,7 @@ def x509_to_header(x509Certs, cert_var, cert_length_var, output_file, keep_dupes
327327
))
328328
else:
329329
raise Exception(f'Unknown public key type {numbers_typename}')
330-
# concatonate it all into the big header file template
330+
# concatenate it all into the big header file template
331331
# cert descriptions
332332
cert_desc_out = '\n * \n'.join(cert_desc)
333333
# static arrays
@@ -343,4 +343,4 @@ def x509_to_header(x509Certs, cert_var, cert_length_var, output_file, keep_dupes
343343
cert_length_var=cert_length_var,
344344
cert_length=str(len(CAs)),
345345
cert_data=cert_data_out,
346-
))
346+
))

tools/pycert_bearssl/pycert_bearssl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import certifi
2121
from OpenSSL import crypto
2222

23-
# Default name for the cert length varible
23+
# Default name for the cert length variable
2424
CERT_LENGTH_NAME = "TAs_NUM"
25-
# Defualt name for the cert array varible
25+
# Default name for the cert array variable
2626
CERT_ARRAY_NAME = "TAs"
2727

2828
# Click setup and commands:
@@ -155,4 +155,4 @@ def convert(cert_var, cert_length_var, output, use_store, keep_dupes, no_search,
155155
exit(1)
156156

157157
if __name__ == '__main__':
158-
pycert_bearssl()
158+
pycert_bearssl()

0 commit comments

Comments
 (0)