16 lines
248 B
C
16 lines
248 B
C
#include <shell_api.h>
|
|
|
|
char shell_getc()
|
|
{
|
|
__shell_init();
|
|
|
|
if (__shell_is_init == __SHELL_INIT_OK) {
|
|
*__shell_shm = SHELL_GETC;
|
|
__SHELL_WAIT();
|
|
|
|
return *(__shell_shm + 1);
|
|
}
|
|
else {
|
|
return 0;
|
|
}
|
|
} |