Skip to content

Commit

Permalink
Fix BLE API include directive issue with CY8CKIT-062-BLE
Browse files Browse the repository at this point in the history
Related to ARMmbed#15483

Implement the `createBLEInstance()` function in `connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp`.

* Return a valid `BLEInstanceBase` object from the `createBLEInstance()` function.
* Ensure the `createBLEInstance()` function is correctly linked and resolves the undefined reference error.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ARMmbed/mbed-os/issues/15483?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
vishwamartur committed Nov 2, 2024
1 parent d723bf9 commit 8ef5e35
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,3 +773,9 @@ FunctionPointerWithContext<::BLE::InitializationCompleteCallbackContext *> BLEIn

} // namespace impl
} // namespace ble

// Implement the createBLEInstance() function to return a valid BLEInstanceBase object
ble::BLEInstanceBase *ble::createBLEInstance()
{
return (&(ble::impl::BLEInstanceBase::deviceInstance()));
}

0 comments on commit 8ef5e35

Please sign in to comment.