Exemplo n.º 1
0
void terminal__print_hex(const uint8_t value) {
    const uint16_t string = byte__to_hex_string(value);
    const uint8_t h = string >> 8;
    const uint8_t l = string & 0xFF;
    terminal__putc(h);
    terminal__putc(l);
}
Exemplo n.º 2
0
/* re_goto_bottom():
 *	 used to go to last used screen line
 */
libedit_private void
re_goto_bottom(EditLine *el)
{

	terminal_move_to_line(el, el->el_refresh.r_oldcv);
	terminal__putc(el, '\n');
	re_clear_display(el);
	terminal__flush(el);
}
Exemplo n.º 3
0
void debug__putc(char c) {
    terminal__putc(c);
}
Exemplo n.º 4
0
void keypad__on_event(const uint8_t keyevent) {
    terminal__putc(keyevent);
}
Exemplo n.º 5
0
void terminal__print_bcd(const uint8_t value) {
    const uint8_t h = value >> 4;
    terminal__putc(h ? h + '0' : ' ');
    terminal__putc((value & 0x0F) + '0');
}
Exemplo n.º 6
0
void print_result(const char *test_name, bool result) {
    terminal__putc('\n');
    terminal__print_P(test_name);
    terminal__print_P(result ? PSTR(" OK") : PSTR(" FAIL"));
}