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

Commitcca110f

Browse files
committed
Modify the examples to run on the nucleo_wb55rg board
Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parenta8a500b commitcca110f

File tree

8 files changed

+34
-0
lines changed

8 files changed

+34
-0
lines changed

‎examples/Central/LedControl/LedControl.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ SPIClass SpiHCI(PC12, PC11, PC10);
2828
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2929
BLELocalDeviceBLE(&HCISpiTransport);
3030
constint buttonPin = PC13;// set buttonPin to digital pin PC13
31+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
32+
/* PNUCLEO_WB55RG*/
33+
HCISharedMemTransportClass HCISharedMemTransport;
34+
BLELocalDeviceBLE(&HCISharedMemTransport);
35+
constint buttonPin = PC4;// set buttonPin to digital pin PC4
3136
#else
3237
/* Shield IDB05A2 with SPI clock on D3*/
3338
SPIClassSpiHCI(D11, D12, D3);

‎examples/Central/PeripheralExplorer/PeripheralExplorer.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2525
SPIClassSpiHCI(PC12, PC11, PC10);
2626
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2727
BLELocalDeviceBLE(&HCISpiTransport);
28+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
29+
/* PNUCLEO_WB55RG*/
30+
HCISharedMemTransportClass HCISharedMemTransport;
31+
BLELocalDeviceBLE(&HCISharedMemTransport);
2832
#else
2933
/* Shield IDB05A2 with SPI clock on D3*/
3034
SPIClassSpiHCI(D11, D12, D3);

‎examples/Central/Scan/Scan.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2222
SPIClassSpiHCI(PC12, PC11, PC10);
2323
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2424
BLELocalDeviceBLE(&HCISpiTransport);
25+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
26+
/* PNUCLEO_WB55RG*/
27+
HCISharedMemTransportClass HCISharedMemTransport;
28+
BLELocalDeviceBLE(&HCISharedMemTransport);
2529
#else
2630
/* Shield IDB05A2 with SPI clock on D3*/
2731
SPIClassSpiHCI(D11, D12, D3);

‎examples/Central/ScanCallback/ScanCallback.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2424
SPIClassSpiHCI(PC12, PC11, PC10);
2525
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2626
BLELocalDeviceBLE(&HCISpiTransport);
27+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
28+
/* PNUCLEO_WB55RG*/
29+
HCISharedMemTransportClass HCISharedMemTransport;
30+
BLELocalDeviceBLE(&HCISharedMemTransport);
2731
#else
2832
/* Shield IDB05A2 with SPI clock on D3*/
2933
SPIClassSpiHCI(D11, D12, D3);

‎examples/Central/SensorTagButton/SensorTagButton.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2626
SPIClassSpiHCI(PC12, PC11, PC10);
2727
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2828
BLELocalDeviceBLE(&HCISpiTransport);
29+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
30+
/* PNUCLEO_WB55RG*/
31+
HCISharedMemTransportClass HCISharedMemTransport;
32+
BLELocalDeviceBLE(&HCISharedMemTransport);
2933
#else
3034
/* Shield IDB05A2 with SPI clock on D3*/
3135
SPIClassSpiHCI(D11, D12, D3);

‎examples/Peripheral/ButtonLED/ButtonLED.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ SPIClass SpiHCI(PC12, PC11, PC10);
2929
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
3030
BLELocalDeviceBLE(&HCISpiTransport);
3131
constint buttonPin = PC13;// set buttonPin to digital pin PC13
32+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
33+
/* PNUCLEO_WB55RG*/
34+
HCISharedMemTransportClass HCISharedMemTransport;
35+
BLELocalDeviceBLE(&HCISharedMemTransport);
36+
constint buttonPin = PC4;// set buttonPin to digital pin PC4
3237
#else
3338
/* Shield IDB05A2 with SPI clock on D3*/
3439
SPIClassSpiHCI(D11, D12, D3);

‎examples/Peripheral/CallbackLED/CallbackLED.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2727
SPIClassSpiHCI(PC12, PC11, PC10);
2828
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2929
BLELocalDeviceBLE(&HCISpiTransport);
30+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
31+
/* PNUCLEO_WB55RG*/
32+
HCISharedMemTransportClass HCISharedMemTransport;
33+
BLELocalDeviceBLE(&HCISharedMemTransport);
3034
#else
3135
/* Shield IDB05A2 with SPI clock on D3*/
3236
SPIClassSpiHCI(D11, D12, D3);

‎examples/Peripheral/LED/LED.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ BLELocalDevice BLE(&HCISpiTransport);
2525
SPIClassSpiHCI(PC12, PC11, PC10);
2626
HCISpiTransportClassHCISpiTransport(SpiHCI, SPBTLE_RF, PD13, PE6, PA8,8000000, SPI_MODE0);
2727
BLELocalDeviceBLE(&HCISpiTransport);
28+
#elif defined(ARDUINO_PNUCLEO_WB55RG)
29+
/* PNUCLEO_WB55RG*/
30+
HCISharedMemTransportClass HCISharedMemTransport;
31+
BLELocalDeviceBLE(&HCISharedMemTransport);
2832
#else
2933
/* Shield IDB05A2 with SPI clock on D3*/
3034
SPIClassSpiHCI(D11, D12, D3);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp