Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8fdf958

Browse files
authored
Merge pull request#74 from stm32duino/rebase_1.3.7
Sync to ArduinoBLE master
2 parents13b3a1a +f892330 commit8fdf958

File tree

91 files changed

+3211
-21606
lines changed

Some content is hidden

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

91 files changed

+3211
-21606
lines changed

‎.codespellrc‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
2+
# See: https://github.com/codespell-project/codespell#using-a-config-file
3+
[codespell]
4+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
5+
ignore-words-list = ,
6+
skip = ./.git,./.licenses,__pycache__,node_modules,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock,./extras/test
7+
builtin = clear,informal,en-GB_to_en-US
8+
check-filenames =
9+
check-hidden =

‎.github/workflows/codespell.yml‎

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
name:Compile Examples
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
24
on:
3-
-push
4-
-pull_request
5+
push:
6+
paths:
7+
-".github/workflows/compile-examples.yml"
8+
-"examples/**"
9+
-"src/**"
10+
pull_request:
11+
paths:
12+
-".github/workflows/compile-examples.yml"
13+
-"examples/**"
14+
-"src/**"
15+
workflow_dispatch:
516

617
jobs:
7-
build:
18+
build-for-stm32:
819
runs-on:ubuntu-latest
920

1021
strategy:
@@ -17,11 +28,17 @@ jobs:
1728
-STMicroelectronics:stm32:Nucleo_64:pnum=P_NUCLEO_WB55_USB_DONGLE
1829

1930
steps:
20-
-uses:actions/checkout@main
31+
-uses:actions/checkout@v4
2132
-uses:arduino/compile-sketches@v1
2233
with:
2334
github-token:${{ secrets.GITHUB_TOKEN }}
2435
fqbn:${{ matrix.fqbn }}
2536
platforms:|
26-
- source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
27-
name: STMicroelectronics:stm32
37+
- name: STMicroelectronics:stm32
38+
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
39+
sketch-paths:|
40+
- examples
41+
cli-compile-flags:|
42+
- --build-property
43+
- build.extra_flags=-DIDB05A2_SPI_CLOCK_D3
44+

‎.github/workflows/spell-check.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Source: https://github.com/per1234/.github/blob/main/workflow-templates/spell-check.md
2+
name:Spell Check
3+
4+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
10+
-cron:"0 8 * * TUE"
11+
workflow_dispatch:
12+
repository_dispatch:
13+
14+
jobs:
15+
spellcheck:
16+
runs-on:ubuntu-latest
17+
permissions:
18+
contents:read
19+
20+
steps:
21+
-name:Checkout repository
22+
uses:actions/checkout@v4
23+
24+
-name:Spell check
25+
uses:codespell-project/actions-codespell@v2
26+
with:
27+
check_filenames:true
28+
check_hidden:true
29+
# In the event of a false positive, add the word in all lower case to this file:
30+
# ignore_words_file: ./extras/codespell-ignore-words-list.txt
31+
skip:src/utility/STM32_WPAN
32+
path:src

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.DS_Store

‎CHANGELOG‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
STM32duinoBLE 1.2.0 - 2020.02.17
2-
* Added support to X-NUCLEO-BNRG2A1
3-
* Renamed ArduinoBLE as STM32duinoBLE
4-
* Moved the SPI Transport instance in the application code to improve portability
1+
ArduinoBLE ?.?.? - ????.??.??
52

63
ArduinoBLE 1.1.2 - 2019.11.12
74

8-
* cordio: switch to lower power when polling with timeout
5+
* cordio: switch to lower power when polling with timeout
96
* Fixed issue with wrong types for disconnection event handling. Thanks @cparata
107

118
ArduinoBLE 1.1.1 - 2019.09.05

‎README.md‎

Lines changed: 93 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,95 @@
11
#STM32duinoBLE
22

3-
This library is a fork of ArduinoBLE library to add the support ofSTM32WBxx, SPBTLE-RF andSPBTLE-1S BLE modules.
4-
It was successfully tested with the NUCLEO-WB15CC, P-NUCELO_WB55RG, STM32WB5MM-DK, X-NUCLEO-IDB05A2 or
5-
X-NUCLEO-IDB05A1 or X-NUCLEO-BNRG2A1 expansion board and a NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-L053R8,
6-
with B-L475E-IOT01A and with STEVAL-MKSBOX1V1.
7-
8-
- In order to use this library with SM32WBxx series, you need to update the STM32WB Copro Wireless Binaries
9-
with stm32wbxx_BLE_HCILayer_fw.bin depending of your mcu:
10-
https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/STM32WB_Copro_Wireless_Binaries
3+
This library is a fork of ArduinoBLE library to add the support of STM32WB, SPBTLE-RF,SPBTLE-1S, BLUENRG-M2SP, BLUENRG-LP and BLUENRG-M0 BLE modules.
4+
5+
It was successfully tested with the[NUCLEO-WB15CC],[P-NUCLEO-WB55RG],[STM32WB5MM-DK],[X-NUCLEO-IDB05A2] or[X-NUCLEO-IDB05A1] or[X-NUCLEO-BNRG2A1] expansion board and a[NUCLEO-F401RE] or[NUCLEO-L476RG] or[NUCLEO-L053R8], with[B-L475E-IOT01A],[B-L4S5I-IOT01A],[STEVAL-MKSBOX1V1],[STEVAL-MKBOXPRO] and with[STM32L562E-DK].
6+
7+
- In order to use this library with SM32WBxx series, you need to update the STM32WB Copro Wireless Binaries with stm32wbxx_BLE_HCILayer_fw.bin depending of your mcu:
8+
9+
https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/STM32WB_Copro_Wireless_Binaries
10+
1111
Each subdirectories contains binaries and Release_Notes.html which explain how to update it.
1212

13-
- In order to use this library with STEVAL-MKSBOX1V1, you need to update the firmware of the SPBTLE-1S BLE module
14-
mounted on that board as described in the following wiki page:
15-
https://github.com/stm32duino/wiki/wiki/STM32duinoBLE#stm32duinoble-with-steval_mksbox1v1
13+
- In order to use this library with[STEVAL-MKSBOX1V1], you need to update the firmware of the SPBTLE-1S BLE modulemounted on that board as described in the following wiki page:
14+
15+
https://github.com/stm32duino/Arduino_Core_STM32/wiki/STM32duinoBLE#stm32duinoble-with-steval_mksbox1v1
1616

17-
- In order to use this library with X-NUCLEO-BNRG2A1, you need to update the firmware of the BLUENRG-M2SP BLE module
18-
mounted on that expansion board as described in the following wiki page:
19-
https://github.com/stm32duino/wiki/wiki/STM32duinoBLE#stm32duinoble-with-x-nucleo-bnrg2a1
17+
- In order to use this library with X-NUCLEO-BNRG2A1, you need to update the firmware of the BLUENRG-M2SP BLE modulemounted on that expansion board as described in the following wiki page:
18+
19+
https://github.com/stm32duino/Arduino_Core_STM32/wiki/STM32duinoBLE#stm32duinoble-with-x-nucleo-bnrg2a1
2020

2121
For more information about ArduinoBLE library please visit the official web page at:
22-
https://github.com/arduino-libraries/ArduinoBLE
22+
https://www.arduino.cc/en/Reference/ArduinoBLE
2323

2424
#Configuration
25+
26+
###STM32WB
27+
2528
STM32Cube_WPAN has several configuration options, which are set in the`app_conf.h`.
2629
This package has a default configuration named`app_conf_default.h`.
2730
The user can include the file`app_conf_custom.h` to customize the BLE application.
2831
Options wrapped in`#ifndef`,`#endif` in`app_conf_default.h` can be overwritten.
2932
Additional options can be added.
3033

34+
###Shield
35+
36+
The user can include the file`ble_spi_conf.h` to define which shield and configuration to use from the following list:
37+
38+
*[X-NUCLEO-IDB05A2]
39+
*`IDB05A2_SPI_CLOCK_D3`: SPI clock on D3
40+
*`IDB05A2_SPI_CLOCK_D13` SPI clock on D13
41+
*[X-NUCLEO-IDB05A1]
42+
*`IDB05A1_SPI_CLOCK_D3`: SPI clock on D3
43+
*`IDB05A1_SPI_CLOCK_D13`: SPI clock on D13
44+
*[X-NUCLEO-BNRG2A1]
45+
*`BNRG2A1_SPI_CLOCK_D3`: SPI clock on D3
46+
*`BNRG2A1_SPI_CLOCK_D13`: SPI clock on D13
47+
*`CUSTOM_BLE_SPI`: define a custom configuration, it requires below definition:
48+
*`BLE_SPI_MISO`: SPI MISO pin
49+
*`BLE_SPI_MOSI`: SPI MOSI pin
50+
*`BLE_SPI_CLK`: SPI CLocK pin
51+
*`BLE_SPI_CS`: SPI Chip Select pin
52+
*`BLE_SPI_IRQ`: SPI IRQ pin
53+
*`BLE_SPI_FREQ`: SPI bus frequency
54+
*`BLE_SPI_MODE`: can be one of the below`SPIMode`:
55+
*`SPI_MODE0`
56+
*`SPI_MODE1`
57+
*`SPI_MODE2`
58+
*`SPI_MODE0`
59+
*`BLE_CHIP_TYPE`: can be one of the below`BLEChip_t`:
60+
*`SPBTLE_RF`
61+
*`SPBTLE_1S`
62+
*`BLUENRG_M2SP`
63+
*`BLUENRG_M0`
64+
*`BLUENRG_LP`
65+
*`BLE_RESET`: BLE reset pin
66+
67+
####Examples
68+
69+
To use the[X-NUCLEO-IDB05A2] with SPI clock on D3, define in`ble_spi_conf.h`:
70+
```C
71+
#defineIDB05A2_SPI_CLOCK_D3
72+
```
73+
This is equivalent to the below configuration using the`CUSTOM_BLE_SPI`:
74+
```C
75+
#defineCUSTOM_BLE_SPI
76+
#defineBLE_SPI_MISOD12
77+
#defineBLE_SPI_MOSID11
78+
#defineBLE_SPI_CLK D3
79+
#defineBLE_SPI_CS A1
80+
#defineBLE_SPI_IRQ A0
81+
#defineBLE_SPI_FREQ8000000
82+
#defineBLE_SPI_MODESPI_MODE0
83+
#defineBLE_CHIP_TYPE BLUENRG_M0
84+
#define BLE_RESET D7
85+
```
86+
87+
#### Using a SPI BLE module on STM32WB
88+
89+
If required, user can use a compatible BLE module over SPI.
90+
91+
In the `ble_spi_conf.h`, define `USE_BLE_SPI`.
92+
3193
## License
3294
3395
```
@@ -48,3 +110,19 @@ You should have received a copy of the GNU Lesser General Public
48110
License along with this library; if not, write to the Free Software
49111
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
50112
```
113+
114+
115+
B-L475E-IOT01A: https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html
116+
B-L4S5I-IOT01A: https://www.st.com/en/evaluation-tools/b-l4s5i-iot01a.html
117+
NUCLEO-F401RE: https://www.st.com/en/evaluation-tools/nucleo-f401re.html
118+
NUCLEO-L053R8: https://www.st.com/en/evaluation-tools/nucleo-l053r8.html
119+
NUCLEO-L476RG: https://www.st.com/en/evaluation-tools/nucleo-l476rg.html
120+
NUCLEO-WB15CC: https://www.st.com/en/evaluation-tools/nucleo-wb15cc.html
121+
P-NUCLEO-WB55RG: https://www.st.com/en/evaluation-tools/p-nucleo-wb55.html
122+
STEVAL-MKSBOX1V1: https://www.st.com/en/evaluation-tools/steval-mksbox1v1.html
123+
STEVAL-MKBOXPRO: https://www.st.com/en/evaluation-tools/steval-mkboxpro.html
124+
STM32L562E-DK: https://www.st.com/en/evaluation-tools/stm32l562e-dk.html
125+
STM32WB5MM-DK: https://www.st.com/en/evaluation-tools/stm32wb5mm-dk.html
126+
X-NUCLEO-BNRG2A1: https://www.st.com/en/ecosystems/x-nucleo-bnrg2a1.html
127+
X-NUCLEO-IDB05A2: https://www.st.com/en/ecosystems/x-nucleo-idb05a2.html
128+
X-NUCLEO-IDB05A1: https://www.st.com/en/ecosystems/x-nucleo-idb05a1.html

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp