Loading...
Searching...
No Matches
syscfg.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015-2021 The Apache Software Foundation
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#pragma once
7
17
18#include "kernel_defines.h"
19
34#define MYNEWT_VAL(_name) MYNEWT_VAL_ ## _name
35#define MYNEWT_VAL_CHOICE(_name, _val) MYNEWT_VAL_ ## _name ## __ ## _val
37
42#ifndef MYNEWT_VAL_OS_CPUTIME_TIMER_NUM
43#ifdef CPU_FAM_NRF51
44#define MYNEWT_VAL_OS_CPUTIME_TIMER_NUM (3)
45#else
46#define MYNEWT_VAL_OS_CPUTIME_TIMER_NUM (5)
47#endif
48#endif
49
53#ifdef CPU_FAM_NRF51
54#ifndef MYNEWT_VAL_TIMER_3
55#define MYNEWT_VAL_TIMER_3 (1)
56#endif
57#else
58#ifndef MYNEWT_VAL_TIMER_5
59#define MYNEWT_VAL_TIMER_5 (1)
60#endif
61#endif
62
63#if IS_USED(MODULE_NIMBLE)
64/*** @mynewt-nimble */
65#undef MYNEWT_VAL
66#undef MYNEWT_VAL_CHOICE
67#include "npl_sycfg.h"
68#endif
69
70#if IS_USED(MODULE_UWB_CORE)
71/*** @decawave-mynewt-core/hw/drivers/uwb */
73
74/*** @decawave-mynewt-core/lib/twr_ds */
76
77/*** @decawave-mynewt-core/lib/twr_ds_ext */
79
80/*** @decawave-mynewt-core/lib/twr_ss */
82
83/*** @decawave-mynewt-core/lib/twr_ss_ack */
85
86/*** @decawave-mynewt-core/lib/twr_ss_ext */
88
89/*** @decawave-mynewt-core/lib/uwb_rng */
91
92#endif
93
94#if IS_USED(MODULE_UWB_DW1000)
95/*** @decawave-uwb-dw1000/hw/drivers/uwb/uwb_dw1000 */
96#include "syscfg_uwb_dw1000.h"
97#endif
98
99#ifdef __cplusplus
100extern "C" {
101#endif
102
103#ifdef __cplusplus
104}
105#endif
Common macros and compiler attributes/pragmas configuration.
uwb-dw100 double side two-way ranging module configurations taken from decawave-uwb-core/lib/twr_ds/s...
uwb-core double side extended two-way ranging module configurations taken from decawave-uwb-core/lib/...
uwb-core single-sided two-way ranging module configurations taken from decawave-uwb-core/lib/twr_ss/s...
Single sided ranging using a hw generated ack module configurations taken from decawave-uwb-core/lib/...
uwb-core single-sided two-way ranging module configurations taken from decawave-uwb-core/lib/twr_ss_e...
uwb-core uwb module configurations taken from decawave-uwb-core/hw/drivers/uwb/syscfg....
uwb-dw1000 module configurations taken from decawave-uwb-dw1000/hw/drivers/uwb/uwb_dw1000
uwb-core uwb_rng module configurations taken from decawave-uwb-core/lib/uwb_rng/syscfg....