Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: nRF51822n.cpp
- Revision:
- 79:540d11f2764f
- Parent:
- 56:a1071b629aa3
- Child:
- 80:cdcc094ab166
--- a/nRF51822n.cpp Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51822n.cpp Wed Dec 03 14:33:28 2014 +0000
@@ -36,20 +36,10 @@
return (&deviceInstance);
}
-/**************************************************************************/
-/*!
- @brief Constructor
-*/
-/**************************************************************************/
nRF51822n::nRF51822n(void)
{
}
-/**************************************************************************/
-/*!
- @brief Destructor
-*/
-/**************************************************************************/
nRF51822n::~nRF51822n(void)
{
}
@@ -89,22 +79,6 @@
return BLE_ERROR_NONE;
}
-/**************************************************************************/
-/*!
- @brief Initialises anything required to start using BLE
-
- @returns ble_error_t
-
- @retval BLE_ERROR_NONE
- Everything executed properly
-
- @section EXAMPLE
-
- @code
-
- @endcode
-*/
-/**************************************************************************/
ble_error_t nRF51822n::init(void)
{
/* ToDo: Clear memory contents, reset the SD, etc. */
@@ -115,23 +89,6 @@
return BLE_ERROR_NONE;
}
-/**************************************************************************/
-/*!
- @brief Resets the BLE HW, removing any existing services and
- characteristics
-
- @returns ble_error_t
-
- @retval BLE_ERROR_NONE
- Everything executed properly
-
- @section EXAMPLE
-
- @code
-
- @endcode
-*/
-/**************************************************************************/
ble_error_t nRF51822n::reset(void)
{
nrf_delay_us(500000);
@@ -146,4 +103,4 @@
nRF51822n::waitForEvent(void)
{
sd_app_evt_wait();
-}
+}
\ No newline at end of file
