-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsm_printf.h
47 lines (37 loc) · 1.18 KB
/
sm_printf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright 2016 NXP
*
* This software is owned or controlled by NXP and may only be used
* strictly in accordance with the applicable license terms. By expressly
* accepting such terms or by downloading, installing, activating and/or
* otherwise using the software, you are agreeing that you have read, and
* that you agree to comply with and are bound by, such license terms. If
* you do not agree to be bound by the applicable license terms, then you
* may not retain, install, activate or otherwise use the software.
*/
#ifndef _SM_PRINTF_H_
#define _SM_PRINTF_H_
#include <stdint.h>
#include "sm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
#if AX_EMBEDDED
# include "fsl_debug_console.h"
#else
# define PRINTF printf
# define SCANF scanf
# define PUTCHAR putchar
# define GETCHAR getchar
#endif
#define CONSOLE (0x01)
#define MEMORY (0x02)
#define LOGFILE (0x04)
#define DBGOUT_ALL (CONSOLE|MEMORY|LOGFILE)
#define DBGOUT CONSOLE
void sm_printf(unsigned char dev, const char * format, ...);
void AssertZeroAllocation(void);
#ifdef __cplusplus
}
#endif
#endif // _SM_PRINTF_H_