Skip to content

Commit f3d85d6

Browse files
committed
Merge branch 'main' into adding_circle_bitmaptools
2 parents 29613c7 + 55c3e9f commit f3d85d6

File tree

266 files changed

+4370
-997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+4370
-997
lines changed

.codespell/exclude-file.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#define MICROPY_HW_BOARD_NAME "BLOK"
2+
USB_PRODUCT = "BLOK"
3+
uint32_t THI = (*(uint32_t *)FUSES_HOT_TEMP_VAL_INT_ADDR & FUSES_HOT_TEMP_VAL_INT_Msk) >> FUSES_HOT_TEMP_VAL_INT_Pos;
4+
float TH = THI + convert_dec_to_frac(THD);
5+
print(binascii.b2a_base64(b"fo"))
6+
# again, neither will "there" or "wither", since they have "the"
7+
i1Qb$TE"rl

.codespell/ignore-words.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ans
2+
ure
3+
clen
4+
ser
5+
endianess
6+
pris
7+
synopsys
8+
reenable
9+
dout
10+
inout
11+
wel
12+
iput
13+
hsi
14+
astroid
15+
busses
16+
cyphertext
17+
dum
18+
deque
19+
deques
20+
extint
21+
shs
22+
pass-thru

.codespellrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line).
4+
# Or copy & paste the whole problematic line to 'exclude-file.txt'
5+
ignore-words = .codespell/ignore-words.txt
6+
exclude-file = .codespell/exclude-file.txt
7+
check-filenames =
8+
check-hidden =
9+
count =
10+
skip = .cproject,.git,./lib,./locale,ACKNOWLEDGEMENTS

.pre-commit-config.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ repos:
88
hooks:
99
- id: check-yaml
1010
- id: end-of-file-fixer
11-
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/espressif/esp-idf-config/.*|ports/espressif/boards/.*/sdkconfig)'
11+
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
1212
- id: trailing-whitespace
13-
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/.*)'
13+
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff)'
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.2.4
16+
hooks:
17+
- id: codespell
18+
args: [-w]
19+
exclude: |
20+
(?x)^(
21+
locale/|
22+
lib/
23+
)
1424
- repo: local
1525
hooks:
1626
- id: translations

Makefile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,24 @@ clean-stm:
324324
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean
325325

326326

327-
# Do blobless partial clones of submodules to save time and space.
327+
# If available, do blobless partial clones of submodules to save time and space.
328328
# A blobless partial clone lazily fetches data as needed, but has all the metadata available (tags, etc.)
329329
# so it does not have the idiosyncrasies of a shallow clone.
330+
#
331+
# If not available, do a fetch that will fail, and then fix it up with a second fetch.
332+
# (Only works for git servers that allow sha fetches.)
330333
.PHONY: fetch-submodules
331334
fetch-submodules:
332-
git submodule update --init --filter=blob:none
335+
git submodule sync
336+
#####################################################################################
337+
# NOTE: Ideally, use git version 2.36.0 or later, to do partial clones of submodules.
338+
# If an older git is used, submodules will be cloned with a shallow clone of depth 1.
339+
# You will see a git usage message first if the git version is too old to do
340+
# clones of submodules.
341+
#####################################################################################
342+
git submodule update --init --filter=blob:none || git submodule update --init -N --depth 1 || git submodule foreach 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1' || echo 'make fetch-submodules FAILED'
343+
344+
.PHONY: remove-submodules
345+
remove-submodules:
346+
git submodule deinit -f --all
347+
rm -rf .git/modules/*

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
extensions = [
7878
'sphinx.ext.autodoc',
7979
'sphinx.ext.doctest',
80+
"sphinxcontrib.jquery",
8081
'sphinxcontrib.rsvgconverter',
8182
'sphinx.ext.intersphinx',
8283
'sphinx.ext.todo',

devices/ble_hci/common-hal/_bleio/Adapter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mp_obj_t common_hal_bleio_adapter_start_scan(bleio_adapter_obj_t *self, uint8_t
483483

484484
if (self->scan_results != NULL) {
485485
if (!shared_module_bleio_scanresults_get_done(self->scan_results)) {
486-
mp_raise_bleio_BluetoothError(translate("Scan already in progess. Stop with stop_scan."));
486+
mp_raise_bleio_BluetoothError(translate("Scan already in progress. Stop with stop_scan."));
487487
}
488488
self->scan_results = NULL;
489489
}

devices/ble_hci/common-hal/_bleio/Adapter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef struct _bleio_adapter_obj_t {
6565
uint16_t manufacturer;
6666
uint16_t lmp_subversion;
6767

68-
// Used to monitor advertising timeout for legacy avertising.
68+
// Used to monitor advertising timeout for legacy advertising.
6969
uint64_t advertising_start_ticks;
7070
uint64_t advertising_timeout_msecs; // If zero, do not check.
7171

devices/ble_hci/common-hal/_bleio/Connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void common_hal_bleio_connection_set_connection_interval(bleio_connection_intern
515515
// (gattc_char->char_props.write ? CHAR_PROP_WRITE : 0) |
516516
// (gattc_char->char_props.write_wo_resp ? CHAR_PROP_WRITE_NO_RESPONSE : 0);
517517

518-
// // Call common_hal_bleio_characteristic_construct() to initalize some fields and set up evt handler.
518+
// // Call common_hal_bleio_characteristic_construct() to initialize some fields and set up evt handler.
519519
// common_hal_bleio_characteristic_construct(
520520
// characteristic, m_char_discovery_service, gattc_char->handle_value, uuid,
521521
// props, SECURITY_MODE_OPEN, SECURITY_MODE_OPEN,

devices/ble_hci/common-hal/_bleio/att.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ STATIC uint8_t bleio_properties_to_ble_spec_properties(uint8_t bleio_properties)
9696
return ble_spec_properties;
9797
}
9898

99-
// FIX not currently used; reenable when used.
99+
// FIX not currently used; re-enable when used.
100100
#if 0
101101
STATIC uint8_t ble_spec_properties_to_bleio_properties(uint8_t ble_spec_properties) {
102102
uint8_t bleio_properties = 0;
@@ -964,7 +964,7 @@ static void process_read_group_req(uint16_t conn_handle, uint16_t mtu, uint8_t d
964964
// Keep track of the first one to make sure.
965965
size_t sizeof_first_service_uuid = 0;
966966

967-
// Size of a single bt_att_group_data chunk. Start with the intial size, and
967+
// Size of a single bt_att_group_data chunk. Start with the initial size, and
968968
// add the uuid size in the loop below.
969969
size_t data_length = sizeof(struct bt_att_group_data);
970970

0 commit comments

Comments
 (0)