Skip to content

Commit

Permalink
Formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
rawalexe committed Oct 11, 2023
1 parent 944bb5d commit 6e69135
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 49 deletions.
1 change: 1 addition & 0 deletions FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ INCLUDE_DIRS += -I${FREERTOS_PLUS_TCP_DIR}/portable/NetworkInterface/linux/
INCLUDE_DIRS += -I${FREERTOS_PLUS_TCP_DIR}/include/
INCLUDE_DIRS += -I${FREERTOS_PLUS_TCP_DIR}/portable/Compiler/GCC/
INCLUDE_DIRS += -I${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/include
INCLUDE_DIRS += -I${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/streamports/File/include
INCLUDE_DIRS += -I${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/kernelports/FreeRTOS/include
INCLUDE_DIRS += -I${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/kernelports/FreeRTOS/
INCLUDE_DIRS += -I${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/streamports/RingBuffer/include
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/

#ifndef TRC_KERNEL_PORT_CONFIG_H
#define TRC_KERNEL_PORT_CONFIG_H
#define TRC_KERNEL_PORT_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @def TRC_CFG_RECORDER_MODE
Expand All @@ -30,7 +30,7 @@ extern "C" {
* TRC_RECORDER_MODE_SNAPSHOT
* TRC_RECORDER_MODE_STREAMING
*/
#define TRC_CFG_RECORDER_MODE TRC_RECORDER_MODE_STREAMING
#define TRC_CFG_RECORDER_MODE TRC_RECORDER_MODE_STREAMING

/**
* @def TRC_CFG_FREERTOS_VERSION
Expand Down Expand Up @@ -60,7 +60,7 @@ extern "C" {
* TRC_FREERTOS_VERSION_10_5_0 If using FreeRTOS v10.5.0
* TRC_FREERTOS_VERSION_10_5_1 If using FreeRTOS v10.5.1 or later
*/
#define TRC_CFG_FREERTOS_VERSION TRC_FREERTOS_VERSION_10_5_1
#define TRC_CFG_FREERTOS_VERSION TRC_FREERTOS_VERSION_10_5_1

/**
* @def TRC_CFG_INCLUDE_EVENT_GROUP_EVENTS
Expand Down Expand Up @@ -111,10 +111,10 @@ extern "C" {
* traceQUEUE_SEND to traceQUEUE_SET_SEND in order to tell them apart from
* other traceQUEUE_SEND trace points. Then set this to TRC_ACKNOWLEDGED.
*/
#define TRC_CFG_ACKNOWLEDGE_QUEUE_SET_SEND 0 /* TRC_ACKNOWLEDGED */
#define TRC_CFG_ACKNOWLEDGE_QUEUE_SET_SEND 0 /* TRC_ACKNOWLEDGED */

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* TRC_KERNEL_PORT_CONFIG_H */
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
*/

#ifndef TRC_KERNEL_PORT_STREAMING_CONFIG_H
#define TRC_KERNEL_PORT_STREAMING_CONFIG_H
#define TRC_KERNEL_PORT_STREAMING_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/* Nothing yet */

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* TRC_KERNEL_PORT_STREAMING_CONFIG_H */
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
/*
* Trace Recorder for Tracealyzer v4.8.1
* Copyright 2023 Percepio AB
* www.percepio.com
*
* SPDX-License-Identifier: Apache-2.0
*
* Trace Recorder for Tracealyzer v4.8.1
* Copyright 2023 Percepio AB
* www.percepio.com
*
* SPDX-License-Identifier: Apache-2.0
*
* The configuration for trace streaming ("stream ports").
*/
*/

#ifndef TRC_STREAM_PORT_CONFIG_H
#define TRC_STREAM_PORT_CONFIG_H
#define TRC_STREAM_PORT_CONFIG_H

#if (TRC_USE_TRACEALYZER_RECORDER == 1)
#if ( TRC_USE_TRACEALYZER_RECORDER == 1 )

#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)
#if ( TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING )

#include <trcTypes.h>
#include <trcTypes.h>

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/* Type flags */
#define TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL (0U)
#define TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL (1U)
#define TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL ( 0U )
#define TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL ( 1U )

/**
* @def TRC_CFG_STREAM_PORT_BUFFER_SIZE
*
*
* @brief Defines the size of the ring buffer use for storing trace events.
*/
#define TRC_CFG_STREAM_PORT_BUFFER_SIZE 10240
#define TRC_CFG_STREAM_PORT_BUFFER_SIZE 10240

/**
* @def TRC_CFG_STREAM_PORT_BUFFER_MODE
*
*
* @brief Configures the behavior of the ring buffer when full.
*
*
* With TRC_CFG_STREAM_PORT_MODE set to TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL, the
* events are stored in a ring buffer, i.e., where the oldest events are
* overwritten when the buffer becomes full. This allows you to get the last
* events leading up to an interesting state, e.g., an error, without having
* to store the whole run since startup.
*
*
* When TRC_CFG_STREAM_PORT_MODE is TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL, the
* recording is stopped when the buffer becomes full. This is useful for
* recording events following a specific state, e.g., the startup sequence.
*/
#define TRC_CFG_STREAM_PORT_RINGBUFFER_MODE TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL
#define TRC_CFG_STREAM_PORT_RINGBUFFER_MODE TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)*/
#endif /*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)*/

#endif /*(TRC_USE_TRACEALYZER_RECORDER == 1)*/
#endif /*(TRC_USE_TRACEALYZER_RECORDER == 1)*/

#endif /* TRC_STREAM_PORT_CONFIG_H */
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
*/

#ifndef TRC_STREAMING_CONFIG_H
#define TRC_STREAMING_CONFIG_H
#define TRC_STREAMING_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @def TRC_CFG_ENTRY_SLOTS
Expand All @@ -28,7 +28,7 @@ extern "C" {
* trace display will be affected. In that case, there will be warnings
* (as User Events) from TzCtrl task, that monitors this.
*/
#define TRC_CFG_ENTRY_SLOTS 50
#define TRC_CFG_ENTRY_SLOTS 50

/**
* @def TRC_CFG_ENTRY_SYMBOL_MAX_LENGTH
Expand All @@ -42,10 +42,10 @@ extern "C" {
* which will affect the trace display. In that case, there will be warnings
* (as User Events) from TzCtrl task, that monitors this.
*/
#define TRC_CFG_ENTRY_SYMBOL_MAX_LENGTH 28
#define TRC_CFG_ENTRY_SYMBOL_MAX_LENGTH 28

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* TRC_STREAMING_CONFIG_H */

0 comments on commit 6e69135

Please sign in to comment.