L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
utilities_conf.h File Reference

Header for configuration file to utilities. More...

#include "cmsis_compiler.h"
#include "stm32_mem.h"
#include "stm32_tiny_vsnprintf.h"
#include "utilities_def.h"
Include dependency graph for utilities_conf.h:

Go to the source code of this file.

Macros

#define VLEVEL_OFF   0
#define VLEVEL_ALWAYS   0
#define VLEVEL_L   1
#define VLEVEL_M   2
#define VLEVEL_H   3
#define TS_OFF   0
#define TS_ON   1
#define T_REG_OFF   0
#define UTIL_PLACE_IN_SECTION(__x__)
 Memory placement macro.
#define ALIGN(n)
 Memory alignment macro.
#define UTILS_INIT_CRITICAL_SECTION()
 macro used to initialize the critical section
#define UTILS_ENTER_CRITICAL_SECTION()
 macro used to enter the critical section
#define UTILS_EXIT_CRITICAL_SECTION()
 macro used to exit the critical section
#define UTIL_SEQ_CONF_TASK_NBR   CFG_SEQ_Task_NBR
 default number of tasks configured in sequencer
#define UTIL_SEQ_CONF_PRIO_NBR   CFG_SEQ_Prio_NBR
 default value of priority task
#define UTIL_SEQ_INIT_CRITICAL_SECTION()
 macro used to initialize the critical section
#define UTIL_SEQ_ENTER_CRITICAL_SECTION()
 macro used to enter the critical section
#define UTIL_SEQ_EXIT_CRITICAL_SECTION()
 macro used to exit the critical section
#define UTIL_SEQ_MEMSET8(dest, value, size)
 Memset utilities interface to application.
#define UTIL_ADV_TRACE_CONDITIONNAL
#define UTIL_ADV_TRACE_UNCHUNK_MODE
#define UTIL_ADV_TRACE_DEBUG(...)
#define UTIL_ADV_TRACE_INIT_CRITICAL_SECTION()
#define UTIL_ADV_TRACE_ENTER_CRITICAL_SECTION()
#define UTIL_ADV_TRACE_EXIT_CRITICAL_SECTION()
#define UTIL_ADV_TRACE_TMP_BUF_SIZE   (512U)
#define UTIL_ADV_TRACE_TMP_MAX_TIMESTMAP_SIZE   (15U)
#define UTIL_ADV_TRACE_FIFO_SIZE   (1024U)
#define UTIL_ADV_TRACE_MEMSET8(dest, value, size)
#define UTIL_ADV_TRACE_VSNPRINTF(...)

Detailed Description

Header for configuration file to utilities.

Author
MCD Application Team
Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file utilities_conf.h.

Macro Definition Documentation

◆ ALIGN

#define ALIGN ( n)
Value:
__attribute__((aligned(n)))
__attribute__((weak))
Definition syscalls.c:67

Memory alignment macro.

Definition at line 91 of file utilities_conf.h.

◆ T_REG_OFF

#define T_REG_OFF   0

Log without bitmask

Definition at line 59 of file utilities_conf.h.

◆ TS_OFF

#define TS_OFF   0

Log without TimeStamp

Definition at line 56 of file utilities_conf.h.

Referenced by LoRaWAN_Init(), OnNvmDataChange(), StopJoin(), and StoreContext().

◆ TS_ON

#define TS_ON   1

Log with TimeStamp

Definition at line 57 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_CONDITIONNAL

#define UTIL_ADV_TRACE_CONDITIONNAL

not used

Definition at line 152 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_DEBUG

#define UTIL_ADV_TRACE_DEBUG ( ...)
Value:
/*!< not used */

not used

Definition at line 154 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_ENTER_CRITICAL_SECTION

#define UTIL_ADV_TRACE_ENTER_CRITICAL_SECTION ( )
Value:
#define UTILS_ENTER_CRITICAL_SECTION()
macro used to enter the critical section

enter the critical section in trace feature

Definition at line 156 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_EXIT_CRITICAL_SECTION

#define UTIL_ADV_TRACE_EXIT_CRITICAL_SECTION ( )
Value:
#define UTILS_EXIT_CRITICAL_SECTION()
macro used to exit the critical section

exit the critical section in trace feature

Definition at line 157 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_FIFO_SIZE

#define UTIL_ADV_TRACE_FIFO_SIZE   (1024U)

default trace fifo size

Definition at line 160 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_INIT_CRITICAL_SECTION

#define UTIL_ADV_TRACE_INIT_CRITICAL_SECTION ( )
Value:
#define UTILS_INIT_CRITICAL_SECTION()
macro used to initialize the critical section

init the critical section in trace feature

Definition at line 155 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_MEMSET8

#define UTIL_ADV_TRACE_MEMSET8 ( dest,
value,
size )
Value:
UTIL_MEM_set_8((dest),(value),(size))

memset utilities interface to trace feature

Definition at line 161 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_TMP_BUF_SIZE

#define UTIL_ADV_TRACE_TMP_BUF_SIZE   (512U)

default trace buffer size

Definition at line 158 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_TMP_MAX_TIMESTMAP_SIZE

#define UTIL_ADV_TRACE_TMP_MAX_TIMESTMAP_SIZE   (15U)

default trace timestamp size

Definition at line 159 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_UNCHUNK_MODE

#define UTIL_ADV_TRACE_UNCHUNK_MODE

not used

Definition at line 153 of file utilities_conf.h.

◆ UTIL_ADV_TRACE_VSNPRINTF

#define UTIL_ADV_TRACE_VSNPRINTF ( ...)
Value:
tiny_vsnprintf_like(__VA_ARGS__)

vsnprintf utilities interface to trace feature

Definition at line 162 of file utilities_conf.h.

Referenced by tiny_snprintf_like().

◆ UTIL_PLACE_IN_SECTION

#define UTIL_PLACE_IN_SECTION ( __x__)
Value:
__attribute__((section (__x__)))

Memory placement macro.

Definition at line 81 of file utilities_conf.h.

◆ UTIL_SEQ_CONF_PRIO_NBR

#define UTIL_SEQ_CONF_PRIO_NBR   CFG_SEQ_Prio_NBR

default value of priority task

Definition at line 122 of file utilities_conf.h.

◆ UTIL_SEQ_CONF_TASK_NBR

#define UTIL_SEQ_CONF_TASK_NBR   CFG_SEQ_Task_NBR

default number of tasks configured in sequencer

Definition at line 116 of file utilities_conf.h.

◆ UTIL_SEQ_ENTER_CRITICAL_SECTION

#define UTIL_SEQ_ENTER_CRITICAL_SECTION ( )
Value:

macro used to enter the critical section

Definition at line 132 of file utilities_conf.h.

◆ UTIL_SEQ_EXIT_CRITICAL_SECTION

#define UTIL_SEQ_EXIT_CRITICAL_SECTION ( )
Value:

macro used to exit the critical section

Definition at line 137 of file utilities_conf.h.

◆ UTIL_SEQ_INIT_CRITICAL_SECTION

#define UTIL_SEQ_INIT_CRITICAL_SECTION ( )
Value:

macro used to initialize the critical section

Definition at line 127 of file utilities_conf.h.

◆ UTIL_SEQ_MEMSET8

#define UTIL_SEQ_MEMSET8 ( dest,
value,
size )
Value:
UTIL_MEM_set_8( dest, value, size )

Memset utilities interface to application.

Definition at line 142 of file utilities_conf.h.

◆ UTILS_ENTER_CRITICAL_SECTION

#define UTILS_ENTER_CRITICAL_SECTION ( )
Value:
uint32_t primask_bit= __get_PRIMASK();\
__disable_irq()

macro used to enter the critical section

Definition at line 102 of file utilities_conf.h.

◆ UTILS_EXIT_CRITICAL_SECTION

#define UTILS_EXIT_CRITICAL_SECTION ( )
Value:
__set_PRIMASK(primask_bit)

macro used to exit the critical section

Definition at line 108 of file utilities_conf.h.

◆ UTILS_INIT_CRITICAL_SECTION

#define UTILS_INIT_CRITICAL_SECTION ( )

macro used to initialize the critical section

Definition at line 97 of file utilities_conf.h.

◆ VLEVEL_ALWAYS

#define VLEVEL_ALWAYS   0

used as message params, if this level is given trace will be printed even when UTIL_ADV_TRACE_SetVerboseLevel(OFF)

Definition at line 50 of file utilities_conf.h.

◆ VLEVEL_H

#define VLEVEL_H   3

all traces

Definition at line 54 of file utilities_conf.h.

◆ VLEVEL_L

#define VLEVEL_L   1

just essential traces

Definition at line 52 of file utilities_conf.h.

◆ VLEVEL_M

#define VLEVEL_M   2

functional traces

Definition at line 53 of file utilities_conf.h.

Referenced by LoRaWAN_Init(), OnNvmDataChange(), StopJoin(), and StoreContext().

◆ VLEVEL_OFF

#define VLEVEL_OFF   0

used to set UTIL_ADV_TRACE_SetVerboseLevel() (not as message param)

Definition at line 49 of file utilities_conf.h.