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

Fork of nrf51-sdk by Nordic Semiconductor

Committer:
Yassinetaouil
Date:
Wed Nov 02 15:29:13 2016 +0000
Revision:
46:b1a9de66ecab
f1;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Yassinetaouil 46:b1a9de66ecab 1 /* Copyright (c) 2015, Nordic Semiconductor ASA
Yassinetaouil 46:b1a9de66ecab 2 * All rights reserved.
Yassinetaouil 46:b1a9de66ecab 3 *
Yassinetaouil 46:b1a9de66ecab 4 * Redistribution and use in source and binary forms, with or without
Yassinetaouil 46:b1a9de66ecab 5 * modification, are permitted provided that the following conditions are met:
Yassinetaouil 46:b1a9de66ecab 6 *
Yassinetaouil 46:b1a9de66ecab 7 * * Redistributions of source code must retain the above copyright notice, this
Yassinetaouil 46:b1a9de66ecab 8 * list of conditions and the following disclaimer.
Yassinetaouil 46:b1a9de66ecab 9 *
Yassinetaouil 46:b1a9de66ecab 10 * * Redistributions in binary form must reproduce the above copyright notice,
Yassinetaouil 46:b1a9de66ecab 11 * this list of conditions and the following disclaimer in the documentation
Yassinetaouil 46:b1a9de66ecab 12 * and/or other materials provided with the distribution.
Yassinetaouil 46:b1a9de66ecab 13 *
Yassinetaouil 46:b1a9de66ecab 14 * * Neither the name of Nordic Semiconductor ASA nor the names of its
Yassinetaouil 46:b1a9de66ecab 15 * contributors may be used to endorse or promote products derived from
Yassinetaouil 46:b1a9de66ecab 16 * this software without specific prior written permission.
Yassinetaouil 46:b1a9de66ecab 17 *
Yassinetaouil 46:b1a9de66ecab 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Yassinetaouil 46:b1a9de66ecab 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Yassinetaouil 46:b1a9de66ecab 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Yassinetaouil 46:b1a9de66ecab 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Yassinetaouil 46:b1a9de66ecab 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Yassinetaouil 46:b1a9de66ecab 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Yassinetaouil 46:b1a9de66ecab 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Yassinetaouil 46:b1a9de66ecab 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Yassinetaouil 46:b1a9de66ecab 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Yassinetaouil 46:b1a9de66ecab 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Yassinetaouil 46:b1a9de66ecab 28 *
Yassinetaouil 46:b1a9de66ecab 29 */
Yassinetaouil 46:b1a9de66ecab 30
Yassinetaouil 46:b1a9de66ecab 31 #ifndef NRF52_NAME_CHANGE_H
Yassinetaouil 46:b1a9de66ecab 32 #define NRF52_NAME_CHANGE_H
Yassinetaouil 46:b1a9de66ecab 33
Yassinetaouil 46:b1a9de66ecab 34 /*lint ++flb "Enter library region */
Yassinetaouil 46:b1a9de66ecab 35
Yassinetaouil 46:b1a9de66ecab 36 /* This file is given to prevent your SW from not compiling with the updates made to nrf52.h and
Yassinetaouil 46:b1a9de66ecab 37 * nrf52_bitfields.h. The macros defined in this file were available previously. Do not use these
Yassinetaouil 46:b1a9de66ecab 38 * macros on purpose. Use the ones defined in nrf52.h and nrf52_bitfields.h instead.
Yassinetaouil 46:b1a9de66ecab 39 */
Yassinetaouil 46:b1a9de66ecab 40
Yassinetaouil 46:b1a9de66ecab 41 /* I2S */
Yassinetaouil 46:b1a9de66ecab 42 /* Several enumerations changed case. Adding old macros to keep compilation compatibility. */
Yassinetaouil 46:b1a9de66ecab 43 #define I2S_ENABLE_ENABLE_DISABLE I2S_ENABLE_ENABLE_Disabled
Yassinetaouil 46:b1a9de66ecab 44 #define I2S_ENABLE_ENABLE_ENABLE I2S_ENABLE_ENABLE_Enabled
Yassinetaouil 46:b1a9de66ecab 45 #define I2S_CONFIG_MODE_MODE_MASTER I2S_CONFIG_MODE_MODE_Master
Yassinetaouil 46:b1a9de66ecab 46 #define I2S_CONFIG_MODE_MODE_SLAVE I2S_CONFIG_MODE_MODE_Slave
Yassinetaouil 46:b1a9de66ecab 47 #define I2S_CONFIG_RXEN_RXEN_DISABLE I2S_CONFIG_RXEN_RXEN_Disabled
Yassinetaouil 46:b1a9de66ecab 48 #define I2S_CONFIG_RXEN_RXEN_ENABLE I2S_CONFIG_RXEN_RXEN_Enabled
Yassinetaouil 46:b1a9de66ecab 49 #define I2S_CONFIG_TXEN_TXEN_DISABLE I2S_CONFIG_TXEN_TXEN_Disabled
Yassinetaouil 46:b1a9de66ecab 50 #define I2S_CONFIG_TXEN_TXEN_ENABLE I2S_CONFIG_TXEN_TXEN_Enabled
Yassinetaouil 46:b1a9de66ecab 51 #define I2S_CONFIG_MCKEN_MCKEN_DISABLE I2S_CONFIG_MCKEN_MCKEN_Disabled
Yassinetaouil 46:b1a9de66ecab 52 #define I2S_CONFIG_MCKEN_MCKEN_ENABLE I2S_CONFIG_MCKEN_MCKEN_Enabled
Yassinetaouil 46:b1a9de66ecab 53 #define I2S_CONFIG_SWIDTH_SWIDTH_8BIT I2S_CONFIG_SWIDTH_SWIDTH_8Bit
Yassinetaouil 46:b1a9de66ecab 54 #define I2S_CONFIG_SWIDTH_SWIDTH_16BIT I2S_CONFIG_SWIDTH_SWIDTH_16Bit
Yassinetaouil 46:b1a9de66ecab 55 #define I2S_CONFIG_SWIDTH_SWIDTH_24BIT I2S_CONFIG_SWIDTH_SWIDTH_24Bit
Yassinetaouil 46:b1a9de66ecab 56 #define I2S_CONFIG_ALIGN_ALIGN_LEFT I2S_CONFIG_ALIGN_ALIGN_Left
Yassinetaouil 46:b1a9de66ecab 57 #define I2S_CONFIG_ALIGN_ALIGN_RIGHT I2S_CONFIG_ALIGN_ALIGN_Right
Yassinetaouil 46:b1a9de66ecab 58 #define I2S_CONFIG_FORMAT_FORMAT_ALIGNED I2S_CONFIG_FORMAT_FORMAT_Aligned
Yassinetaouil 46:b1a9de66ecab 59 #define I2S_CONFIG_CHANNELS_CHANNELS_STEREO I2S_CONFIG_CHANNELS_CHANNELS_Stereo
Yassinetaouil 46:b1a9de66ecab 60 #define I2S_CONFIG_CHANNELS_CHANNELS_LEFT I2S_CONFIG_CHANNELS_CHANNELS_Left
Yassinetaouil 46:b1a9de66ecab 61 #define I2S_CONFIG_CHANNELS_CHANNELS_RIGHT I2S_CONFIG_CHANNELS_CHANNELS_Right
Yassinetaouil 46:b1a9de66ecab 62
Yassinetaouil 46:b1a9de66ecab 63
Yassinetaouil 46:b1a9de66ecab 64
Yassinetaouil 46:b1a9de66ecab 65
Yassinetaouil 46:b1a9de66ecab 66
Yassinetaouil 46:b1a9de66ecab 67 /*lint --flb "Leave library region" */
Yassinetaouil 46:b1a9de66ecab 68
Yassinetaouil 46:b1a9de66ecab 69 #endif /* NRF52_NAME_CHANGE_H */
Yassinetaouil 46:b1a9de66ecab 70
Yassinetaouil 46:b1a9de66ecab 71