Add keyboard/mbed_onekey
This commit is contained in:
parent
79840c678e
commit
f15b2691c9
10 changed files with 640 additions and 93 deletions
|
@ -37,26 +37,4 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t))
|
|||
xdev_out(sendchar_func);
|
||||
}
|
||||
|
||||
void print_S(const char *s)
|
||||
{
|
||||
uint8_t c;
|
||||
while (1) {
|
||||
c = *s++;
|
||||
if (!c) break;
|
||||
if (c == '\n') sendchar('\r');
|
||||
sendchar(c);
|
||||
}
|
||||
}
|
||||
|
||||
void print_lf(void)
|
||||
{
|
||||
sendchar('\n');
|
||||
}
|
||||
|
||||
void print_crlf(void)
|
||||
{
|
||||
sendchar('\r');
|
||||
sendchar('\n');
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue