8 #if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN 34 nsh_consolemain(0,
nullptr);
73 pthread_attr_t thread_attr;
74 struct sched_param param;
76 pthread_attr_init(&thread_attr);
77 pthread_attr_setstacksize(&thread_attr, 2048);
80 (void)pthread_attr_setschedparam(&thread_attr, ¶m);
81 pthread_attr_setschedpolicy(&thread_attr, SCHED_FIFO);
101 if (
write(*buffer++) != 1) {
127 if (ioctl(
shell_stdin, FIONREAD, (
unsigned long)&ret) == OK) {
136 if (ioctl(
shell_stdout, FIONWRITE, (
unsigned long)&ret) == OK) {
142 #endif // CONFIG_HAL_BOARD virtual uint32_t available_memory(void)
bool get_soft_armed() const
bool showed_armed_warning
AP_HAL::UARTDriver * console
static uint8_t buffer[SRXL_FRAMELEN_MAX]
ssize_t write(int fd, const void *buf, size_t count)
POSIX Write count bytes from *buf to fileno fd.
pthread_t shell_thread_ctx
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
uint32_t txspace() override
uint32_t available() override
#define APM_SHELL_PRIORITY
virtual void printf(const char *,...) FMT_PRINTF(2
bool showed_memory_warning
int close(int fileno)
POSIX Close a file with fileno handel.
struct VRBRAIN::NSHShellStream::@117 child
static void shell_thread(void *arg)