コード例 #1
0
ファイル: main.c プロジェクト: semicontinuity/embedded
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);
}
コード例 #2
0
ファイル: refresh.c プロジェクト: cappuccino/cappuccino-base
/* 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);
}
コード例 #3
0
ファイル: main.c プロジェクト: semicontinuity/embedded
void debug__putc(char c) {
    terminal__putc(c);
}
コード例 #4
0
void keypad__on_event(const uint8_t keyevent) {
    terminal__putc(keyevent);
}
コード例 #5
0
ファイル: main.c プロジェクト: semicontinuity/embedded
void terminal__print_bcd(const uint8_t value) {
    const uint8_t h = value >> 4;
    terminal__putc(h ? h + '0' : ' ');
    terminal__putc((value & 0x0F) + '0');
}
コード例 #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"));
}