32#include "stm32_adv_trace.h"
58#define APP_PPRINTF(...) do{ } while( UTIL_ADV_TRACE_OK \
59 != UTIL_ADV_TRACE_COND_FSend(VLEVEL_ALWAYS, T_REG_OFF, TS_OFF, __VA_ARGS__) )
60#define APP_TPRINTF(...) do{ {UTIL_ADV_TRACE_COND_FSend(VLEVEL_ALWAYS, T_REG_OFF, TS_ON, __VA_ARGS__);} }while(0);
61#define APP_PRINTF(...) do{ {UTIL_ADV_TRACE_COND_FSend(VLEVEL_ALWAYS, T_REG_OFF, TS_OFF, __VA_ARGS__);} }while(0);
63#if defined (APP_LOG_ENABLED) && (APP_LOG_ENABLED == 1)
64#define APP_LOG(TS,VL,...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0);
65#elif defined (APP_LOG_ENABLED) && (APP_LOG_ENABLED == 0)
66#define APP_LOG(TS,VL,...)
68#error "APP_LOG_ENABLED not defined or out of range <0,1>"
74#define APP_LOG(TS,VL,...) {writeLog( __VA_ARGS__);}
void SystemApp_Init(void)
initialize the system (dbg pins, trace, mbmux, sys timer, LPM, ...)
void GetDevAddr(uint32_t *devAddr)
callback to get the board 32 bits unique ID (LSB)
int16_t GetTemperatureLevel(void)
callback to get the current temperature in the MCU
void GetUniqueId(uint8_t *id)
callback to get the board 64 bits unique ID
uint8_t GetBatteryLevel(void)
callback to get the battery level in % of full charge (254 full charge, 0 no charge)
Applicative configuration, e.g. : debug, trace, low power, sensors.