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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
source/nRF5xSecurityManager.cpp@563:9c4b96f7be8d, 2016-01-11 (annotated)
- Committer:
- vcoubard
- Date:
- Mon Jan 11 10:19:16 2016 +0000
- Revision:
- 563:9c4b96f7be8d
- Parent:
- 561:613dbbdeed27
Synchronized with git rev 7e784e0e
Author: Vincent Coubard
Merge branch 'develop' of https://github.com/ARMmbed/ble-nrf51822 into characteristicDescriptorDiscovery
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vcoubard | 561:613dbbdeed27 | 1 | /* mbed Microcontroller Library |
| vcoubard | 561:613dbbdeed27 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| vcoubard | 561:613dbbdeed27 | 3 | * |
| vcoubard | 561:613dbbdeed27 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| vcoubard | 561:613dbbdeed27 | 5 | * you may not use this file except in compliance with the License. |
| vcoubard | 561:613dbbdeed27 | 6 | * You may obtain a copy of the License at |
| vcoubard | 561:613dbbdeed27 | 7 | * |
| vcoubard | 561:613dbbdeed27 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| vcoubard | 561:613dbbdeed27 | 9 | * |
| vcoubard | 561:613dbbdeed27 | 10 | * Unless required by applicable law or agreed to in writing, software |
| vcoubard | 561:613dbbdeed27 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| vcoubard | 561:613dbbdeed27 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| vcoubard | 561:613dbbdeed27 | 13 | * See the License for the specific language governing permissions and |
| vcoubard | 561:613dbbdeed27 | 14 | * limitations under the License. |
| vcoubard | 561:613dbbdeed27 | 15 | */ |
| vcoubard | 561:613dbbdeed27 | 16 | |
| vcoubard | 561:613dbbdeed27 | 17 | #include "nRF5xSecurityManager.h" |
| vcoubard | 561:613dbbdeed27 | 18 | |
| vcoubard | 561:613dbbdeed27 | 19 | nRF5xSecurityManager &nRF5xSecurityManager::getInstance(void) { |
| vcoubard | 563:9c4b96f7be8d | 20 | static nRF5xSecurityManager* m_instance = NULL; |
| vcoubard | 563:9c4b96f7be8d | 21 | if (m_instance == NULL) { |
| vcoubard | 563:9c4b96f7be8d | 22 | m_instance = new nRF5xSecurityManager(); |
| vcoubard | 561:613dbbdeed27 | 23 | } |
| vcoubard | 563:9c4b96f7be8d | 24 | return *m_instance; |
| rgrover1 | 388:db85a09c27ef | 25 | } |