Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.

Dependents:   nRF51822 nRF51822

Committer:
vcoubard
Date:
Thu Apr 07 17:37:17 2016 +0100
Revision:
1:ebc0e0ef0a11
Parent:
0:f2542974c862
Child:
10:233fefd8162b
Synchronized with git rev d1170b61
Author: Liyou Zhou
Pull the files we need directly out of the nordic-sdk
without modifications preserving the folder structure in
the sdk. nRF51_SDK_8.1.0_b6ed55f.zip from:
https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/

Who changed what in which revision?

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