TVSetting HAL 0.2.0
 
Loading...
Searching...
No Matches
tvLog.h
Go to the documentation of this file.
1/*
2* If not stated otherwise in this file or this component's LICENSE file the
3* following copyright and licenses apply:
4*
5* Copyright 2016 RDK Management
6*
7* Licensed under the Apache License, Version 2.0 (the "License");
8* you may not use this file except in compliance with the License.
9* You may obtain a copy of the License at
10*
11* http://www.apache.org/licenses/LICENSE-2.0
12*
13* Unless required by applicable law or agreed to in writing, software
14* distributed under the License is distributed on an "AS IS" BASIS,
15* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16* See the License for the specific language governing permissions and
17* limitations under the License.
18*/
19/**
20 * @addtogroup HPK Hardware Porting Kit
21 * @{
22 * @par The Hardware Porting Kit
23 * HPK is the next evolution of the well-defined Hardware Abstraction Layer
24 * (HAL), but augmented with more comprehensive documentation and test suites
25 * that OEM or SOC vendors can use to self-certify their ports before taking
26 * them to RDKM for validation or to an operator for final integration and
27 * deployment. The Hardware Porting Kit effectively enables an OEM and/or SOC
28 * vendor to self-certify their own Video Accelerator devices, with minimal RDKM
29 * assistance.
30 *
31 */
32
33/**
34 * @addtogroup TV_Settings TV Settings Module
35 * @{
36 */
37
38
39/**
40* @addtogroup TV_Settings_HAL TV Settings HAL
41* @{
42*/
43
44/**
45* @defgroup TV_Log_H TV Log Header
46* @{
47*/
48#ifndef _TV_LOG_H
49#define _TV_LOG_H
50#include <stdio.h>
51#ifdef __cplusplus
52extern "C"
53{
54#endif
55#define ERROR(text, ...) do {\
56 printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "ERROR", ##__VA_ARGS__);}while(0);
57#define INFO(text, ...) do {\
58 printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "INFO", ##__VA_ARGS__);}while(0);
59//#define DEBUG_ENABLED
60#ifdef DEBUG_ENABLED
61#define DEBUG(text, ...) do {\
62 printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "DEBUG", ##__VA_ARGS__);}while(0);
63#else
64#define DEBUG(text, ...)
65#endif
66#ifdef __cplusplus
67}
68#endif
69#endif //_TV_LOG_H
70
71/** @} */ // End of TV_Log_H
72/** @} */ // End of TV_Settings_HAL
73/** @} */ // End of TV_Settings
74/** @} */ // End of HPK