Skip to the content.

Target Integration Sources for Trice

This folder contains the target-side Trice instrumentation sources.

These files belong together. They are not unrelated utility files. A product that uses Trice on the target typically integrates this whole set together with a project-specific triceConfig.h.

If you found this folder while inspecting an existing product, the most likely interpretation is:

Essential Overview

Project-level documentation:

Configuration Model

The normal pattern is:

  1. The product provides its own triceConfig.h.
  2. triceConfig.h overrides only the settings that differ from the defaults.
  3. The remaining defaults come from triceDefaultConfig.h.

Minimal example:

#ifndef TRICE_CONFIG_H_
#define TRICE_CONFIG_H_

#ifdef __cplusplus
extern "C" {
#endif

//! TRICE_CLEAN, if found inside triceConfig.h, is modified by the Trice tool to silent editor warnings in the cleaned state.
#define TRICE_CLEAN 1 // Do not define this at another place. But you can delete this here.

#include <stdint.h>
#define TRICE_DEFERRED_UARTA 1 // 1: use TRICE_UARTA for deferred output
#define TRICE_UARTA USART2     // Use the hardware-specific device USART2 as TRICE_UARTA.
                               // The symbol is typically provided by a user-specific triceUart.h file.
                               // The file triceUart.h is automatically included from the library file triceUart.c.

#define TRICE_DEFERRED_OUTPUT 1
#define TRICE_BUFFER TRICE_RING_BUFFER

#ifdef __cplusplus
}
#endif

#endif // TRICE_CONFIG_H_

Important:

Notes

If this folder appears in a third-party firmware tree, that firmware is very likely carrying a local copy of the Trice target instrumentation library.