config changes

Fork of nRF51822 by Nordic Semiconductor

Committer:
rgrover1
Date:
Mon Nov 02 09:05:10 2015 +0000
Revision:
456:da0323feba9b
Parent:
388:db85a09c27ef
Child:
561:613dbbdeed27
Synchronized with git rev 97a65815
Author: Andres Amaya Garcia
Introduced changes for memory savings

Moved GattSecurityManager and GattClient to be allocated dynamically and
reduced the size of some arrays to increase memory savings.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 388:db85a09c27ef 1 /* mbed Microcontroller Library
rgrover1 388:db85a09c27ef 2 * Copyright (c) 2006-2013 ARM Limited
rgrover1 388:db85a09c27ef 3 *
rgrover1 388:db85a09c27ef 4 * Licensed under the Apache License, Version 2.0 (the "License");
rgrover1 388:db85a09c27ef 5 * you may not use this file except in compliance with the License.
rgrover1 388:db85a09c27ef 6 * You may obtain a copy of the License at
rgrover1 388:db85a09c27ef 7 *
rgrover1 388:db85a09c27ef 8 * http://www.apache.org/licenses/LICENSE-2.0
rgrover1 388:db85a09c27ef 9 *
rgrover1 388:db85a09c27ef 10 * Unless required by applicable law or agreed to in writing, software
rgrover1 388:db85a09c27ef 11 * distributed under the License is distributed on an "AS IS" BASIS,
rgrover1 388:db85a09c27ef 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rgrover1 388:db85a09c27ef 13 * See the License for the specific language governing permissions and
rgrover1 388:db85a09c27ef 14 * limitations under the License.
rgrover1 388:db85a09c27ef 15 */
rgrover1 388:db85a09c27ef 16
rgrover1 388:db85a09c27ef 17 #include "nRF5xSecurityManager.h"
rgrover1 388:db85a09c27ef 18
rgrover1 388:db85a09c27ef 19 nRF5xSecurityManager &nRF5xSecurityManager::getInstance(void) {
rgrover1 456:da0323feba9b 20 static nRF5xSecurityManager* m_instance = NULL;
rgrover1 456:da0323feba9b 21 if (m_instance == NULL) {
rgrover1 456:da0323feba9b 22 m_instance = new nRF5xSecurityManager();
rgrover1 456:da0323feba9b 23 }
rgrover1 456:da0323feba9b 24 return *m_instance;
rgrover1 388:db85a09c27ef 25 }