Sakura IoT Platform b

Fork of SakuraIO by SAKURA Internet

Committer:
spiralray
Date:
Sat Nov 19 03:20:17 2016 +0000
Revision:
0:8d34375d954c
Child:
3:c54a1eba22c4
First commit(This only works with SPI)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
spiralray 0:8d34375d954c 1 #ifndef __SAKURA_IO_DEBUG_H__
spiralray 0:8d34375d954c 2 #define __SAKURA_IO_DEBUG_H__
spiralray 0:8d34375d954c 3
spiralray 0:8d34375d954c 4
spiralray 0:8d34375d954c 5 #if defined(SAKURA_DEBUG)
spiralray 0:8d34375d954c 6 #define dbg(...) printf(__VA_ARGS__)
spiralray 0:8d34375d954c 7 #define dbgln(...) DEBUG_PRINTF_LN(__VA_ARGS__, "\r\n")
spiralray 0:8d34375d954c 8 #define DEBUG_PRINTF_LN(type, fmt, ...) printf(fmt "%s", __VA_ARGS__)
spiralray 0:8d34375d954c 9 #else
spiralray 0:8d34375d954c 10 #define dbg(...)
spiralray 0:8d34375d954c 11 #define dbgln(...)
spiralray 0:8d34375d954c 12 #endif
spiralray 0:8d34375d954c 13
spiralray 0:8d34375d954c 14 #endif //__SAKURA_IO_DEBUG_H__