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) 2009 Nordic Semiconductor. All Rights Reserved.
rgrover1 361:d2405f5a4853 2 *
rgrover1 361:d2405f5a4853 3 * The information contained herein is property of Nordic Semiconductor ASA.
rgrover1 361:d2405f5a4853 4 * Terms and conditions of usage are described in detail in NORDIC
rgrover1 361:d2405f5a4853 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
rgrover1 361:d2405f5a4853 6 *
rgrover1 361:d2405f5a4853 7 * Licensees are granted free, non-transferable use of the information. NO
rgrover1 361:d2405f5a4853 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
rgrover1 361:d2405f5a4853 9 * the file.
rgrover1 361:d2405f5a4853 10 *
rgrover1 361:d2405f5a4853 11 */
rgrover1 361:d2405f5a4853 12
rgrover1 361:d2405f5a4853 13 #ifndef COMMON_H
rgrover1 361:d2405f5a4853 14 #define COMMON_H
rgrover1 361:d2405f5a4853 15
rgrover1 361:d2405f5a4853 16 /*lint ++flb "Enter library region" */
rgrover1 361:d2405f5a4853 17
rgrover1 361:d2405f5a4853 18 #include <stdbool.h>
rgrover1 361:d2405f5a4853 19 #include <stdint.h>
rgrover1 361:d2405f5a4853 20
rgrover1 361:d2405f5a4853 21 /* @file
rgrover1 361:d2405f5a4853 22 * @brief Common header file for generic macros and definitions
rgrover1 361:d2405f5a4853 23 *
rgrover1 361:d2405f5a4853 24 */
rgrover1 361:d2405f5a4853 25
rgrover1 361:d2405f5a4853 26 /*
rgrover1 361:d2405f5a4853 27 * GPIO glue macros, this can be used to define a pin number in source/header file and use that macro for pin
rgrover1 361:d2405f5a4853 28 * configuration using this expansion.
rgrover1 361:d2405f5a4853 29 * example:
rgrover1 361:d2405f5a4853 30 * #define RESET_PIN 8
rgrover1 361:d2405f5a4853 31 * NRF_GPIO->PINCNF(RESET_PIN) = XXX ; // Expanded NRF_GPIO->PIN_CNF[8] = XXX
rgrover1 361:d2405f5a4853 32 */
rgrover1 361:d2405f5a4853 33 #define PINX_GLUE(x, y, z) x##y##_##z /*!< first level glue for pin macros */
rgrover1 361:d2405f5a4853 34 #define PINCNF(p) PINX_GLUE(PIN,p,CNF) /*!< gpio configure pin number 'p' */
rgrover1 361:d2405f5a4853 35 #define PINOUT(p) PINX_GLUE(PIN,p,OUT) /*!< gpio out pin number 'p' */
rgrover1 361:d2405f5a4853 36
rgrover1 361:d2405f5a4853 37 /*lint --flb "Leave library region" */
rgrover1 361:d2405f5a4853 38 #endif