Commit 5b4cb17d authored by Bjørn Inge Hanssen's avatar Bjørn Inge Hanssen
Browse files

Remove references to v3

parent 3e6a9c97
......@@ -11,7 +11,7 @@ The .hex files included in the `hex/sd_api_v<x>` folder include both the SoftDev
* Windows (XP, 7, 8, 8.1, 10) 32 and 64-bit
* GNU/Linux (Ubuntu tested) 32 and 64-bit
* macOS (OS X) 32 and 64-bit
* macOS (OS X) 64-bit
## Hardware setup
......
......@@ -3,7 +3,7 @@
`pc-ble-driver` provides C/C++ libraries for Bluetooth Low Energy nRF5 SoftDevice serialization.
## Overview
`pc-ble-driver` consists of a set of static and shared libraries that provide [SoftDevice](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.softdevices52/dita/nrf52/softdevices.html?cp=2_3) functionality to the application via serial port communication with an nRF5 connectivity chip running the SoftDevice and connectivity software, included as a single .hex file [here](./hex/). For more information on SoftDevice serialization see [Serialization](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/lib_serialization.html?cp=4_0_0_3_33).
`pc-ble-driver` consists of a set of static and shared libraries that provide [SoftDevice](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.softdevices52/dita/nrf52/softdevices.html?cp=2_3) functionality to the application via serial port communication with an nRF5 connectivity chip running the SoftDevice and connectivity software, included as a single .hex file [here](./hex/). For more information on SoftDevice serialization see [Serialization](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/lib_serialization.html?cp=4_0_0_3_33).
The C/C++ libraries can be interfaced with directly, but are also provided as higher-level bindings that ease development at the cost of reduced control (acceptable in most cases):
......@@ -22,13 +22,13 @@ Now that you have successfully built and installed `pc-ble-driver`, you are read
$ cd pc-ble-driver/
$ ls build/
> libpc_ble_driver_static_sd_api_v2.a libpc_ble_driver_shared_sd_api_v2.dylib libpc_ble_driver_static_sd_api_v3.a libpc_ble_driver_shared_sd_api_v3.dylib test_uart ...
> libpc_ble_driver_static_sd_api_v2.a libpc_ble_driver_shared_sd_api_v2.dylib libpc_ble_driver_static_sd_api_v5.a libpc_ble_driver_shared_sd_api_v5.dylib test_uart ...
To quickly get the examples up and running, see [examples/README.md](https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/README.md).
## Architecture
![alt tag](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/architecture_overview_serialization.svg)
![alt tag](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/architecture_overview_serialization.svg)
Where the 'Application chip' is just generic hardware (i.e. a Windows, OS X or Linux device), although it could also be an Arduino or Raspberry Pi for example.
......
......@@ -55,7 +55,7 @@ set(Boost_USE_STATIC_LIBS ON)
find_package ( Boost 1.54.0 REQUIRED COMPONENTS thread system regex date_time chrono )
# Add or remove SD API versions here
set(SD_API_VER_NUMS 2 3 5)
set(SD_API_VER_NUMS 2 5)
list(LENGTH SD_API_VER_NUMS SD_API_VER_COUNT)
set(SD_API_VER_PREFIX "SD_API_V")
......
......@@ -18,9 +18,9 @@ Note: this step depends on your operating system [as documented here](https://gi
If everything went well, you should see:
$ ls pc-ble-driver/examples/heart_rate_monitor/build/
> hrm_v2 hrm_v3 ...
> hrm_v2 hrm_v5 ...
Where `hrm_v2` and `hrm_v3` are the executables you will run.
Where `hrm_v2` and `hrm_v5` are the executables you will run.
#### Running
......
......@@ -28,28 +28,22 @@ endif()
# Build executable
add_executable(hrc_v2 main.c)
add_executable(hrc_v3 main.c)
add_executable(hrc_v5 main.c)
target_compile_definitions(hrc_v2 PRIVATE -DNRF_SD_BLE_API=2)
target_compile_definitions(hrc_v3 PRIVATE -DNRF_SD_BLE_API=3)
target_compile_definitions(hrc_v5 PRIVATE -DNRF_SD_BLE_API=5)
target_include_directories(hrc_v2 PRIVATE ../../src/sd_api_v2/sdk/components/softdevice/s132/headers)
target_include_directories(hrc_v3 PRIVATE ../../src/sd_api_v3/sdk/components/softdevice/s132/headers)
target_include_directories(hrc_v5 PRIVATE ../../src/sd_api_v5/sdk/components/softdevice/s132/headers)
# Specify libraries to link with
if(MSVC)
target_link_libraries(hrc_v2 PRIVATE pc_ble_driver_static_sd_api_v2)
target_link_libraries(hrc_v3 PRIVATE pc_ble_driver_static_sd_api_v3)
target_link_libraries(hrc_v5 PRIVATE pc_ble_driver_static_sd_api_v5)
else()
target_link_libraries(hrc_v2 PRIVATE pc_ble_driver_shared_sd_api_v2)
target_link_libraries(hrc_v3 PRIVATE pc_ble_driver_shared_sd_api_v3)
target_link_libraries(hrc_v5 PRIVATE pc_ble_driver_shared_sd_api_v5)
endif()
target_link_libraries(hrc_v2 PRIVATE ${Boost_LIBRARIES})
target_link_libraries(hrc_v3 PRIVATE ${Boost_LIBRARIES})
target_link_libraries(hrc_v5 PRIVATE ${Boost_LIBRARIES})
......@@ -28,28 +28,22 @@ endif()
# Build executable
add_executable(hrm_v2 main.c)
add_executable(hrm_v3 main.c)
add_executable(hrm_v5 main.c)
target_compile_definitions(hrm_v2 PRIVATE -DNRF_SD_BLE_API=2)
target_compile_definitions(hrm_v3 PRIVATE -DNRF_SD_BLE_API=3)
target_compile_definitions(hrm_v5 PRIVATE -DNRF_SD_BLE_API=5)
target_include_directories(hrm_v2 PRIVATE ../../src/sd_api_v2/sdk/components/softdevice/s132/headers)
target_include_directories(hrm_v3 PRIVATE ../../src/sd_api_v3/sdk/components/softdevice/s132/headers)
target_include_directories(hrm_v5 PRIVATE ../../src/sd_api_v5/sdk/components/softdevice/s132/headers)
# Specify libraries to link with
if (MSVC)
target_link_libraries(hrm_v2 PRIVATE pc_ble_driver_static_sd_api_v2)
target_link_libraries(hrm_v3 PRIVATE pc_ble_driver_static_sd_api_v3)
target_link_libraries(hrm_v5 PRIVATE pc_ble_driver_static_sd_api_v5)
else()
target_link_libraries(hrm_v2 PRIVATE pc_ble_driver_shared_sd_api_v2)
target_link_libraries(hrm_v3 PRIVATE pc_ble_driver_shared_sd_api_v3)
target_link_libraries(hrm_v5 PRIVATE pc_ble_driver_shared_sd_api_v5)
endif()
target_link_libraries(hrm_v2 PRIVATE ${Boost_LIBRARIES})
target_link_libraries(hrm_v3 PRIVATE ${Boost_LIBRARIES})
target_link_libraries(hrm_v5 PRIVATE ${Boost_LIBRARIES})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment