mirror of
https://github.com/drasko/codezero.git
synced 2026-04-29 07:01:31 +02:00
Initial commit
This commit is contained in:
20
include/l4/platform/tests/printascii.h
Normal file
20
include/l4/platform/tests/printascii.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef __PLATFORM__PB926__PRINTASCII__H__
|
||||
#define __PLATFORM__PB926__PRINTASCII__H__
|
||||
|
||||
/* This include is for the C library on the host. So that
|
||||
* any test executables that run on host can use it.
|
||||
* Don't confuse it with anything else.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
#define printascii(str) printf(str)
|
||||
#define printhex8(x) printf("0x%x",(unsigned int)x)
|
||||
#define dprintk(str, val) printf("%-25s0x%x\n", str, val)
|
||||
/*
|
||||
#define dprintk(str, val) \
|
||||
printascii(str); \
|
||||
printhex8((val)); \
|
||||
printascii("\n");
|
||||
*/
|
||||
|
||||
#endif /* __PLATFORM__PB926__PRINTASCII__H__ */
|
||||
Reference in New Issue
Block a user