Contiki-NG
sl_rail_util_pti_config.h
Go to the documentation of this file.
1/***************************************************************************//**
2 * @file
3 * @brief Packet Trace Information configuration file.
4 *******************************************************************************
5 * # License
6 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
7 *******************************************************************************
8 *
9 * SPDX-License-Identifier: Zlib
10 *
11 * The licensor of this software is Silicon Laboratories Inc.
12 *
13 * This software is provided 'as-is', without any express or implied
14 * warranty. In no event will the authors be held liable for any damages
15 * arising from the use of this software.
16 *
17 * Permission is granted to anyone to use this software for any purpose,
18 * including commercial applications, and to alter it and redistribute it
19 * freely, subject to the following restrictions:
20 *
21 * 1. The origin of this software must not be misrepresented; you must not
22 * claim that you wrote the original software. If you use this software
23 * in a product, an acknowledgment in the product documentation would be
24 * appreciated but is not required.
25 * 2. Altered source versions must be plainly marked as such, and must not be
26 * misrepresented as being the original software.
27 * 3. This notice may not be removed or altered from any source distribution.
28 *
29 ******************************************************************************/
30
31#ifndef SL_RAIL_UTIL_PTI_CONFIG_H
32#define SL_RAIL_UTIL_PTI_CONFIG_H
33
34#include "rail_types.h"
35
36// <<< Use Configuration Wizard in Context Menu >>>
37// <h> PTI Configuration
38
39// <o SL_RAIL_UTIL_PTI_MODE> PTI mode
40// <RAIL_PTI_MODE_UART=> UART
41// <RAIL_PTI_MODE_UART_ONEWIRE=> UART onewire
42// <RAIL_PTI_MODE_SPI=> SPI
43// <RAIL_PTI_MODE_DISABLED=> Disabled
44// <i> Default: RAIL_PTI_MODE_UART
45#define SL_RAIL_UTIL_PTI_MODE RAIL_PTI_MODE_UART
46
47// <o SL_RAIL_UTIL_PTI_BAUD_RATE_HZ> PTI Baud Rate (Hertz)
48// <147800-20000000:1>
49// <i> Default: 1600000
50#define SL_RAIL_UTIL_PTI_BAUD_RATE_HZ 1600000
51
52// </h>
53// <<< end of configuration section >>>
54
55// <<< sl:start pin_tool >>>
56// <pti signal=DOUT,(DFRAME),(DCLK)> SL_RAIL_UTIL_PTI
57// $[PTI_SL_RAIL_UTIL_PTI]
58#define SL_RAIL_UTIL_PTI_PERIPHERAL PTI
59
60// PTI DOUT on PB12
61#define SL_RAIL_UTIL_PTI_DOUT_PORT gpioPortB
62#define SL_RAIL_UTIL_PTI_DOUT_PIN 12
63#define SL_RAIL_UTIL_PTI_DOUT_LOC 6
64
65// PTI DFRAME on PB13
66#define SL_RAIL_UTIL_PTI_DFRAME_PORT gpioPortB
67#define SL_RAIL_UTIL_PTI_DFRAME_PIN 13
68#define SL_RAIL_UTIL_PTI_DFRAME_LOC 6
69
70
71// [PTI_SL_RAIL_UTIL_PTI]$
72
73// <<< sl:end pin_tool >>>
74
75#endif // SL_RAIL_UTIL_PTI_CONFIG_H