PBL mbed final
Fork of nRF51822 by
source/nRF5xSecurityManager.cpp@566:e425ad9e5d6e, 2016-01-11 (annotated)
- Committer:
- vcoubard
- Date:
- Mon Jan 11 10:19:18 2016 +0000
- Revision:
- 566:e425ad9e5d6e
Synchronized with git rev 52200b37
Author: Rohit Grover
follow the extraction of ddress related types from Gap.h into BLEProtocol.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vcoubard | 566:e425ad9e5d6e | 1 | /* mbed Microcontroller Library |
vcoubard | 566:e425ad9e5d6e | 2 | * Copyright (c) 2006-2013 ARM Limited |
vcoubard | 566:e425ad9e5d6e | 3 | * |
vcoubard | 566:e425ad9e5d6e | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
vcoubard | 566:e425ad9e5d6e | 5 | * you may not use this file except in compliance with the License. |
vcoubard | 566:e425ad9e5d6e | 6 | * You may obtain a copy of the License at |
vcoubard | 566:e425ad9e5d6e | 7 | * |
vcoubard | 566:e425ad9e5d6e | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
vcoubard | 566:e425ad9e5d6e | 9 | * |
vcoubard | 566:e425ad9e5d6e | 10 | * Unless required by applicable law or agreed to in writing, software |
vcoubard | 566:e425ad9e5d6e | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
vcoubard | 566:e425ad9e5d6e | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
vcoubard | 566:e425ad9e5d6e | 13 | * See the License for the specific language governing permissions and |
vcoubard | 566:e425ad9e5d6e | 14 | * limitations under the License. |
vcoubard | 566:e425ad9e5d6e | 15 | */ |
vcoubard | 566:e425ad9e5d6e | 16 | |
vcoubard | 566:e425ad9e5d6e | 17 | #include "nRF5xSecurityManager.h" |
vcoubard | 566:e425ad9e5d6e | 18 | |
vcoubard | 566:e425ad9e5d6e | 19 | nRF5xSecurityManager &nRF5xSecurityManager::getInstance(void) { |
vcoubard | 566:e425ad9e5d6e | 20 | static nRF5xSecurityManager* m_instance = NULL; |
vcoubard | 566:e425ad9e5d6e | 21 | if (m_instance == NULL) { |
vcoubard | 566:e425ad9e5d6e | 22 | m_instance = new nRF5xSecurityManager(); |
vcoubard | 566:e425ad9e5d6e | 23 | } |
vcoubard | 566:e425ad9e5d6e | 24 | return *m_instance; |
vcoubard | 566:e425ad9e5d6e | 25 | } |