|
| 1 | +/** |
| 2 | + * @file |
| 3 | + * @brief Segger System View configuration file. |
| 4 | + ******************************************************************************* |
| 5 | + * # License |
| 6 | + * <b>Copyright 2020 Silicon Laboratories Inc. |
| 7 | + *www.silabs.com</b> |
| 8 | + ******************************************************************************* |
| 9 | + * |
| 10 | + * SPDX-License-Identifier: Zlib |
| 11 | + * |
| 12 | + * The licensor of this software is Silicon |
| 13 | + *Laboratories Inc. |
| 14 | + * |
| 15 | + * This software is provided 'as-is', without any |
| 16 | + *express or implied warranty. In no event will the |
| 17 | + *authors be held liable for any damages arising from |
| 18 | + *the use of this software. |
| 19 | + * |
| 20 | + * Permission is granted to anyone to use this |
| 21 | + *software for any purpose, including commercial |
| 22 | + *applications, and to alter it and redistribute it |
| 23 | + * freely, subject to the following restrictions: |
| 24 | + * |
| 25 | + * 1. The origin of this software must not be |
| 26 | + *misrepresented; you must not claim that you wrote |
| 27 | + *the original software. If you use this software in a |
| 28 | + *product, an acknowledgment in the product |
| 29 | + *documentation would be appreciated but is not |
| 30 | + *required. |
| 31 | + * 2. Altered source versions must be plainly marked |
| 32 | + *as such, and must not be misrepresented as being the |
| 33 | + *original software. |
| 34 | + * 3. This notice may not be removed or altered from |
| 35 | + *any source distribution. |
| 36 | + * |
| 37 | + ******************************************************************************/ |
| 38 | + |
| 39 | +// Overwirte SystemView config for GN build, SHOULD NOT BE USED WITH SLC!!! |
| 40 | + |
| 41 | +#pragma once |
| 42 | + |
| 43 | +#define SEGGER_SYSVIEW_TIMESTAMP_SOURCE_DWT 0 |
| 44 | +#define SEGGER_SYSVIEW_TIMESTAMP_SOURCE_SLEEPTIMER 1 |
| 45 | + |
| 46 | +// <o SEGGER_SYSVIEW_TIMESTAMP_SOURCE> Source for the time stamps |
| 47 | +// <SEGGER_SYSVIEW_TIMESTAMP_SOURCE_DWT=> DWT Cycle Counter |
| 48 | +// <SEGGER_SYSVIEW_TIMESTAMP_SOURCE_SLEEPTIMER=> Sleep Timer |
| 49 | +// <i> Source for time stamps. Only meaningful when no OS is present. When an OS is present, time stamp is provided by the OS. |
| 50 | +// <i> SEGGER_SYSVIEW_TIMESTAMP_SOURCE_DWT is not available on Cortex-M0+ and cannot be selected. |
| 51 | +// <i> Default: SEGGER_SYSVIEW_TIMESTAMP_SOURCE_SLEEPTIMER |
| 52 | +#define SEGGER_SYSVIEW_TIMESTAMP_SOURCE SEGGER_SYSVIEW_TIMESTAMP_SOURCE_SLEEPTIMER |
| 53 | + |
| 54 | +// <o SEGGER_SYSVIEW_RTT_BUFFER_SIZE> RTT buffer size (in bytes) |
| 55 | +// <i> Default: 1024 |
| 56 | +#define SEGGER_SYSVIEW_RTT_BUFFER_SIZE 8192 |
| 57 | + |
| 58 | +// <o SEGGER_SYSVIEW_RTT_CHANNEL> RTT channel for SystemView |
| 59 | +// <i> Default: 1 |
| 60 | +#define SEGGER_SYSVIEW_RTT_CHANNEL 1 |
| 61 | + |
| 62 | +// <q SEGGER_SYSVIEW_USE_STATIC_BUFFER> Use static buffer to generate events |
| 63 | +// <i> Determines if a single static buffer is used to generate the events. If disabled, the buffer is allocated on the stack. |
| 64 | +// <i> Default: 1 |
| 65 | +#define SEGGER_SYSVIEW_USE_STATIC_BUFFER 1 |
| 66 | + |
| 67 | +// <q SEGGER_SYSVIEW_POST_MORTEM_MODE> Enable post mortem mode |
| 68 | +// <i> Default: 0 |
| 69 | +#define SEGGER_SYSVIEW_POST_MORTEM_MODE 0 |
| 70 | + |
| 71 | +// <q SEGGER_SYSVIEW_CAN_RESTART> Enable SystemView restart |
| 72 | +// <i> If enabled, start sequence is sent on every startup. It is not recommended to disabled this feature. |
| 73 | +// <i> Default: 1 |
| 74 | +#define SEGGER_SYSVIEW_CAN_RESTART 1 |
| 75 | + |
| 76 | +// <q SEGGER_SYSVIEW_ID_SHIFT> Number of bits to shift the Id to save bandwidth. (i.e. 2 when Ids are 4 byte aligned) |
| 77 | +// <i> Default: 0 |
| 78 | +#define SEGGER_SYSVIEW_ID_SHIFT 0 |
| 79 | + |
| 80 | +// <<< end of configuration section >>> |
0 commit comments