xref: /nrf52832-nimble/nordic/nrfx/mdk/nrf_peripherals.h (revision 150812a83cab50279bd772ef6db1bfaf255f2c5b)
1*150812a8SEvalZero /*
2*150812a8SEvalZero 
3*150812a8SEvalZero Copyright (c) 2010 - 2018, Nordic Semiconductor ASA All rights reserved.
4*150812a8SEvalZero 
5*150812a8SEvalZero Redistribution and use in source and binary forms, with or without
6*150812a8SEvalZero modification, are permitted provided that the following conditions are met:
7*150812a8SEvalZero 
8*150812a8SEvalZero 1. Redistributions of source code must retain the above copyright notice, this
9*150812a8SEvalZero    list of conditions and the following disclaimer.
10*150812a8SEvalZero 
11*150812a8SEvalZero 2. Redistributions in binary form must reproduce the above copyright
12*150812a8SEvalZero    notice, this list of conditions and the following disclaimer in the
13*150812a8SEvalZero    documentation and/or other materials provided with the distribution.
14*150812a8SEvalZero 
15*150812a8SEvalZero 3. Neither the name of Nordic Semiconductor ASA nor the names of its
16*150812a8SEvalZero    contributors may be used to endorse or promote products derived from this
17*150812a8SEvalZero    software without specific prior written permission.
18*150812a8SEvalZero 
19*150812a8SEvalZero THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20*150812a8SEvalZero AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*150812a8SEvalZero IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
22*150812a8SEvalZero ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
23*150812a8SEvalZero LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*150812a8SEvalZero CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*150812a8SEvalZero SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*150812a8SEvalZero INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*150812a8SEvalZero CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*150812a8SEvalZero ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*150812a8SEvalZero POSSIBILITY OF SUCH DAMAGE.
30*150812a8SEvalZero 
31*150812a8SEvalZero */
32*150812a8SEvalZero 
33*150812a8SEvalZero #ifndef NRF_PERIPHERALS_H__
34*150812a8SEvalZero #define NRF_PERIPHERALS_H__
35*150812a8SEvalZero 
36*150812a8SEvalZero /*lint ++flb "Enter library region */
37*150812a8SEvalZero 
38*150812a8SEvalZero #if defined(_WIN32)
39*150812a8SEvalZero     /* Do not include nrf specific files when building for PC host */
40*150812a8SEvalZero #elif defined(__unix)
41*150812a8SEvalZero     /* Do not include nrf specific files when building for PC host */
42*150812a8SEvalZero #elif defined(__APPLE__)
43*150812a8SEvalZero     /* Do not include nrf specific files when building for PC host */
44*150812a8SEvalZero #else
45*150812a8SEvalZero 
46*150812a8SEvalZero     #if defined(NRF51)
47*150812a8SEvalZero         #include "nrf51_peripherals.h"
48*150812a8SEvalZero 
49*150812a8SEvalZero     #elif defined(NRF52810_XXAA)
50*150812a8SEvalZero         #include "nrf52810_peripherals.h"
51*150812a8SEvalZero     #elif defined(NRF52832_XXAA) || defined(NRF52832_XXAB)
52*150812a8SEvalZero         #include "nrf52832_peripherals.h"
53*150812a8SEvalZero     #elif defined(NRF52840_XXAA)
54*150812a8SEvalZero         #include "nrf52840_peripherals.h"
55*150812a8SEvalZero 
56*150812a8SEvalZero     #elif defined(NRF9160_XXAA)
57*150812a8SEvalZero         #include "nrf9160_peripherals.h"
58*150812a8SEvalZero 
59*150812a8SEvalZero     #else
60*150812a8SEvalZero         #error "Device must be defined. See nrf.h."
61*150812a8SEvalZero     #endif
62*150812a8SEvalZero #endif
63*150812a8SEvalZero 
64*150812a8SEvalZero /*lint --flb "Leave library region" */
65*150812a8SEvalZero 
66*150812a8SEvalZero #endif // NRF_PERIPHERALS_H__
67