nrfx_glue.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright notice, this
11  * list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution.
16  *
17  * 3. Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from this
19  * software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  */
33 
34 #pragma once
35 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
57 #define NRFX_ASSERT(expression)
58 
64 #define NRFX_STATIC_ASSERT(expression)
65 
72 #define NRFX_IRQ_PRIORITY_SET(irq_number, priority)
73 
79 #define NRFX_IRQ_ENABLE(irq_number)
80 
89 #define NRFX_IRQ_IS_ENABLED(irq_number)
90 
96 #define NRFX_IRQ_DISABLE(irq_number)
97 
103 #define NRFX_IRQ_PENDING_SET(irq_number)
104 
110 #define NRFX_IRQ_PENDING_CLEAR(irq_number)
111 
118 #define NRFX_IRQ_IS_PENDING(irq_number)
119 
121 #define NRFX_CRITICAL_SECTION_ENTER()
122 
124 #define NRFX_CRITICAL_SECTION_EXIT()
125 
132 #define NRFX_DELAY_DWT_BASED 0
133 
139 #define NRFX_DELAY_US(us_time)
140 
142 #define nrfx_atomic_t
143 
152 #define NRFX_ATOMIC_FETCH_STORE(p_data, value)
153 
162 #define NRFX_ATOMIC_FETCH_OR(p_data, value)
163 
173 #define NRFX_ATOMIC_FETCH_AND(p_data, value)
174 
184 #define NRFX_ATOMIC_FETCH_XOR(p_data, value)
185 
195 #define NRFX_ATOMIC_FETCH_ADD(p_data, value)
196 
206 #define NRFX_ATOMIC_FETCH_SUB(p_data, value)
207 
220 #define NRFX_ATOMIC_CAS(p_data, old_value, new_value)
221 
230 #define NRFX_CLZ(value)
231 
240 #define NRFX_CTZ(value)
241 
248 #define NRFX_CUSTOM_ERROR_CODES 0
249 
255 #define NRFX_EVENT_READBACK_ENABLED 1
256 
258 #define NRFX_DPPI_CHANNELS_USED 0
259 
261 #define NRFX_DPPI_GROUPS_USED 0
262 
264 #define NRFX_PPI_CHANNELS_USED 0
265 
267 #define NRFX_PPI_GROUPS_USED 0
268 
270 #define NRFX_GPIOTE_CHANNELS_USED 0
271 
273 #define NRFX_EGUS_USED 0
274 
276 #define NRFX_TIMERS_USED 0
277 
278 
279 #ifdef __cplusplus
280 }
281 #endif
282