Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_LogNrf.h
Go to the documentation of this file.
1
/*
2
* Author: Crownstone Team
3
* Copyright: Crownstone (https://crownstone.rocks)
4
* Date: Sep 1, 2022
5
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6
*/
7
8
#pragma once
9
18
// Use NRF Logger instead.
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
#include "nrf_log.h"
24
25
#define _log(level, addNewLine, fmt, ...) \
26
if (level <= SERIAL_VERBOSITY) { \
27
NRF_LOG_DEBUG(fmt, ##__VA_ARGS__); \
28
}
29
30
#define _logArray(level, addNewLine, pointer, size, ...) \
31
if (level <= SERIAL_VERBOSITY) { \
32
NRF_LOG_HEXDUMP_DEBUG(pointer, size); \
33
}
34
35
#ifdef __cplusplus
36
}
37
#endif
source
include
logging
impl
cs_LogNrf.h
Generated by
1.9.5