8 #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 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 bool showed_memory_warning
virtual uint32_t available_memory(void)
bool get_soft_armed() const
struct PX4::NSHShellStream::@108 child
AP_HAL::UARTDriver * console
static uint8_t buffer[SRXL_FRAMELEN_MAX]
pthread_t shell_thread_ctx
ssize_t write(int fd, const void *buf, size_t count)
POSIX Write count bytes from *buf to fileno fd.
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
uint32_t available() override
#define APM_SHELL_PRIORITY
virtual void printf(const char *,...) FMT_PRINTF(2
int close(int fileno)
POSIX Close a file with fileno handel.
bool showed_armed_warning
uint32_t txspace() override
static void shell_thread(void *arg)