Loading...
Searching...
No Matches
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
46#ifndef NRFX_GLUE_H
47#define NRFX_GLUE_H
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
58#define NRFX_ASSERT(expression)
59
65#define NRFX_STATIC_ASSERT(expression)
66
73#define NRFX_IRQ_PRIORITY_SET(irq_number, priority)
74
80#define NRFX_IRQ_ENABLE(irq_number)
81
90#define NRFX_IRQ_IS_ENABLED(irq_number)
91
97#define NRFX_IRQ_DISABLE(irq_number)
98
104#define NRFX_IRQ_PENDING_SET(irq_number)
105
111#define NRFX_IRQ_PENDING_CLEAR(irq_number)
112
119#define NRFX_IRQ_IS_PENDING(irq_number)
120
122#define NRFX_CRITICAL_SECTION_ENTER()
123
125#define NRFX_CRITICAL_SECTION_EXIT()
126
133#define NRFX_DELAY_DWT_BASED 0
134
140#define NRFX_DELAY_US(us_time)
141
143#define nrfx_atomic_t
144
153#define NRFX_ATOMIC_FETCH_STORE(p_data, value)
154
163#define NRFX_ATOMIC_FETCH_OR(p_data, value)
164
174#define NRFX_ATOMIC_FETCH_AND(p_data, value)
175
185#define NRFX_ATOMIC_FETCH_XOR(p_data, value)
186
196#define NRFX_ATOMIC_FETCH_ADD(p_data, value)
197
207#define NRFX_ATOMIC_FETCH_SUB(p_data, value)
208
221#define NRFX_ATOMIC_CAS(p_data, old_value, new_value)
222
231#define NRFX_CLZ(value)
232
241#define NRFX_CTZ(value)
242
249#define NRFX_CUSTOM_ERROR_CODES 0
250
256#define NRFX_EVENT_READBACK_ENABLED 1
257
259#define NRFX_DPPI_CHANNELS_USED 0
260
262#define NRFX_DPPI_GROUPS_USED 0
263
265#define NRFX_PPI_CHANNELS_USED 0
266
268#define NRFX_PPI_GROUPS_USED 0
269
271#define NRFX_GPIOTE_CHANNELS_USED 0
272
274#define NRFX_EGUS_USED 0
275
277#define NRFX_TIMERS_USED 0
278
279
280#ifdef __cplusplus
281}
282#endif
283
284#endif /* NRFX_GLUE_H */