|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
60 if (data == -1) {
return; }
63 if (
c ==
'\r' ||
c ==
'\n') {
96 for (
int i = 0; i <
cmd_idx; i++) {
101 uint8_t response[] =
" - user asked for help";
102 for (
uint16_t i = 0; i <
sizeof(response); i++) {
106 uint8_t response[] =
" Command not recognized";
107 for (
uint16_t i = 0; i <
sizeof(response); i++) {
int VCOM_check_available(void)
Checks if data available in VCOM buffer.
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
void VCOM_send_message(void)
int VCOM_getchar(void)
Reads one character from VCOM port.
void event_usb_serial(void)
Call VCOM_poll() from module event function.
static void ReadUsbBuffer(void)
Helper function.
void init_usb_serial(void)
Init module, call VCOM_init() from here.
int VCOM_putchar(int c)
Writes one character to VCOM port.
void usb_serial_parse_packet(int data)
Parse data from buffer Note that the function receives int, not char Because we want to be able to ca...
void cmd_execute(void)
Execute command from user use strncmp.