Skip to content

Commit c40caff

Browse files
author
Chris Trowbridge
committed
Initial work to add support for EP_AGORA
1 parent 552c3ad commit c40caff

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

BLE_Button/mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#5941d1718339116cd12914238ec331c84da3d08f
1+
https://github.com/ARMmbed/mbed-os/#b6e5a0a8afa34dec9dae8963778aebce0c82a54b

BLE_Button/mbed_app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
},
4545
"MTB_UBLOX_NINA_B1": {
4646
"ble_button_pin_name": "BUTTON1"
47+
},
48+
"EP_AGORA": {
49+
"ble_button_pin_name": "PIN_NAME_PUSH_BUTTON",
50+
"target.macros_add": ["NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=4"]
4751
}
4852
}
4953
}

BLE_GAPButton/mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#5941d1718339116cd12914238ec331c84da3d08f
1+
https://github.com/ARMmbed/mbed-os/#b6e5a0a8afa34dec9dae8963778aebce0c82a54b

BLE_GAPButton/mbed_app.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
},
4545
"MTB_UBLOX_NINA_B1": {
4646
"ble_button_pin_name": "BUTTON1"
47-
}
47+
},
48+
"EP_AGORA": {
49+
"ble_button_pin_name": "PIN_NAME_PUSH_BUTTON",
50+
"target.macros_add": ["NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=4"]
51+
}
4852
}
4953
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ In order to use BLE in mbed OS you need one of the following hardware combinatio
1818
* A Nordic nRF52-based board such as [nrf52DK](https://os.mbed.com/platforms/Nordic-nRF52-DK/)
1919
* A supported target, such as the [NUCLEO-F401RE](http://www.st.com/en/evaluation-tools/nucleo-f401re.html), with a BLE shield or an external BLE peripheral, such as an [ST shield](http://www.st.com/web/catalog/tools/FM116/SC1075/PF260517).
2020
* A [DISCO_L475VG_IOT01A (ref B-L475E-IOT01A)](http://www.st.com/en/evaluation-tools/b-l475e-iot01a.html) board.
21+
* An Embedded Planet [Agora](https://os.mbed.com/platforms/agora-dev/) board
2122

2223
This target is currently not supported as the examples use Cordio link layer which doesn't have an implementation for it yet:
2324
* A Nordic nRF51-based board such as [nrf51dk](https://www.nordicsemi.com/eng/Products/nRF51-DK) or [mkit](https://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF51822-mKIT).
@@ -42,6 +43,9 @@ The following targets have been tested and work with these examples:
4243
* DISCO_L475VG_IOT01A (ref B-L475E-IOT01A)
4344
* NUCLEO_WB55RG
4445

46+
* Embedded Planet:
47+
* EP_AGORA
48+
4549
<span> **Important:** if an ST shield is used with the K64F board, an hardware is patch required. Check out https://developer.mbed.org/teams/ST/code/X_NUCLEO_IDB0XA1/ for more information.</span>
4650

4751
<span> Note: The Cordio Link layer is used for NRF52 platforms by default. To switch to using the Softdevice, remove these lines in mbed_app.json.
@@ -55,7 +59,7 @@ For NRF52_DK:
5559
"target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S132_FULL", "NORDIC_SOFTDEVICE"]
5660
```
5761

58-
For NRF52840_DK:
62+
For NRF52840_DK or EP_AGORA:
5963
```
6064
"target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
6165
"target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S140_FULL", "NORDIC_SOFTDEVICE"]

0 commit comments

Comments
 (0)