debughelper.c
来自「用M16和MCP2515组成的CAN通讯节点。 有原理图和代码」· C语言 代码 · 共 20 行
C
20 行
#include <ctype.h>
#include "termio.h"
#include "debughelper.h"
void Debug_ByteToUart_p(const char *s, const uint8_t val)
{
term_puts_p(s);
term_puts_P(" = 0x");
term_puthex_byte(val);
term_puts_P(" = ");
term_putbin_byte(val);
if ( isprint(val) ) {
term_puts_P(" (");
term_putc(val);
term_puts_P(")");
}
term_puts_P("\n");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?