Cefn Hoile / nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Committer:
rgrover1
Date:
Thu Jul 02 09:08:44 2015 +0100
Revision:
361:d2405f5a4853
Parent:
346:14b090482fd2
Child:
362:6fa0d4d555f6
Synchronized with git rev 9f72c4ba
Author: Rohit Grover
Release 0.3.7
=============

This is a minor set of enhancements mostly around reduce our global static
memory footprint.

Enhancements
~~~~~~~~~~~~

* Reduce the maximum number of CHARACTERISTICS and DESCRIPTORS that can be
handled. This has memory implications for static global memory. It should
be possible to re-architect our solution for add_characteristic() to not
require these limits; hopefully we'll get there soon.

* Move nRF51GattServer::getInstance() into a .cpp file; same for nRF51Gap::getInstance().

* Reduce max bonds to managed by device-manager to 4; this has memory implications for static global memory.

* Reduce pStorage command queue size to 2; this has memory implications for static global memory.

* Replace uses of deprecated Gap::addr_type_t with Gap::AddressType_t.

* Some UUID-related types have moved into UUID class. Minor changes were needed to work around build errors.

Bugfixes
~~~~~~~~

* None.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 361:d2405f5a4853 1 /* Copyright (c) 2013, Nordic Semiconductor ASA
rgrover1 361:d2405f5a4853 2 * All rights reserved.
rgrover1 361:d2405f5a4853 3 *
rgrover1 361:d2405f5a4853 4 * Redistribution and use in source and binary forms, with or without
rgrover1 361:d2405f5a4853 5 * modification, are permitted provided that the following conditions are met:
rgrover1 361:d2405f5a4853 6 *
rgrover1 361:d2405f5a4853 7 * * Redistributions of source code must retain the above copyright notice, this
rgrover1 361:d2405f5a4853 8 * list of conditions and the following disclaimer.
rgrover1 361:d2405f5a4853 9 *
rgrover1 361:d2405f5a4853 10 * * Redistributions in binary form must reproduce the above copyright notice,
rgrover1 361:d2405f5a4853 11 * this list of conditions and the following disclaimer in the documentation
rgrover1 361:d2405f5a4853 12 * and/or other materials provided with the distribution.
rgrover1 361:d2405f5a4853 13 *
rgrover1 361:d2405f5a4853 14 * * Neither the name of Nordic Semiconductor ASA nor the names of its
rgrover1 361:d2405f5a4853 15 * contributors may be used to endorse or promote products derived from
rgrover1 361:d2405f5a4853 16 * this software without specific prior written permission.
rgrover1 361:d2405f5a4853 17 *
rgrover1 361:d2405f5a4853 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
rgrover1 361:d2405f5a4853 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
rgrover1 361:d2405f5a4853 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
rgrover1 361:d2405f5a4853 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
rgrover1 361:d2405f5a4853 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
rgrover1 361:d2405f5a4853 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
rgrover1 361:d2405f5a4853 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
rgrover1 361:d2405f5a4853 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
rgrover1 361:d2405f5a4853 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
rgrover1 361:d2405f5a4853 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rgrover1 361:d2405f5a4853 28 *
rgrover1 361:d2405f5a4853 29 */
rgrover1 361:d2405f5a4853 30 #ifndef NRF_H
rgrover1 361:d2405f5a4853 31 #define NRF_H
rgrover1 361:d2405f5a4853 32
rgrover1 361:d2405f5a4853 33 #ifndef _WIN32
rgrover1 361:d2405f5a4853 34
rgrover1 361:d2405f5a4853 35 /* Family selection for main includes. NRF51 must be selected. */
rgrover1 361:d2405f5a4853 36 #ifdef NRF51
rgrover1 361:d2405f5a4853 37 #include "nrf51.h"
rgrover1 361:d2405f5a4853 38 #include "nrf51_bitfields.h"
rgrover1 361:d2405f5a4853 39 #include "nrf51_deprecated.h"
rgrover1 361:d2405f5a4853 40 #else
rgrover1 361:d2405f5a4853 41 #error "Device family must be defined. See nrf.h."
rgrover1 361:d2405f5a4853 42 #endif /* NRF51 */
rgrover1 361:d2405f5a4853 43
rgrover1 361:d2405f5a4853 44 #include "compiler_abstraction.h"
rgrover1 361:d2405f5a4853 45
rgrover1 361:d2405f5a4853 46 #endif /* _WIN32 */
rgrover1 361:d2405f5a4853 47
rgrover1 361:d2405f5a4853 48 #endif /* NRF_H */
rgrover1 361:d2405f5a4853 49