Skip to content

Commit ac4b10b

Browse files
committed
It's "shared-module", not "shared-modules"
1 parent 0affb0b commit ac4b10b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/common_hal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These instructions also apply to `analogio`, `busio`, `pulseio` and `touchio`. M
77
Common HAL related files are found in these locations:
88

99
* `shared-bindings` Shared home for the Python <-> C bindings which includes inline RST documentation for the created interfaces. The common hal functions are defined in the .h files of the corresponding C files.
10-
* `shared-modules` Shared home for C code built on the Common HAL and used by all ports. This code only uses `common_hal` methods defined in `shared-bindings`.
10+
* `shared-module` Shared home for C code built on the Common HAL and used by all ports. This code only uses `common_hal` methods defined in `shared-bindings`.
1111
* `<port>/common-hal` Port-specific implementation of the Common HAL.
1212

1313
Each folder has the substructure of <python module name>/<class name> and they should match 1:1. `__init__.c` is used for module globals that are not classes (similar to `__init__.py`).

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE))
340340
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
341341

342342
# There may be duplicates between SRC_COMMON_HAL_EXPANDED and SRC_SHARED_MODULE_EXPANDED,
343-
# because a few modules have files both in common-hal/ and shared-modules/.
343+
# because a few modules have files both in common-hal/ and shared-module/.
344344
# Doing a $(sort ...) removes duplicates as part of sorting.
345345
SRC_COMMON_HAL_SHARED_MODULE_EXPANDED = $(sort $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED))
346346

ports/nrf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE))
191191
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
192192

193193
# There may be duplicates between SRC_COMMON_HAL_EXPANDED and SRC_SHARED_MODULE_EXPANDED,
194-
# because a few modules have files both in common-hal/ and shared-modules/.
194+
# because a few modules have files both in common-hal/ and shared-module/.
195195
# Doing a $(sort ...) removes duplicates as part of sorting.
196196
SRC_COMMON_HAL_SHARED_MODULE_EXPANDED = $(sort $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED))
197197

ports/raspberrypi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE))
213213
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
214214

215215
# There may be duplicates between SRC_COMMON_HAL_EXPANDED and SRC_SHARED_MODULE_EXPANDED,
216-
# because a few modules have files both in common-hal/ and shared-modules/.
216+
# because a few modules have files both in common-hal/ and shared-module/.
217217
# Doing a $(sort ...) removes duplicates as part of sorting.
218218
SRC_COMMON_HAL_SHARED_MODULE_EXPANDED = $(sort $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED))
219219

0 commit comments

Comments
 (0)