Go to the source code of this file.
#define ttyUSB0Getch |
( |
| ) |
({char c;int ret=read(fd, &c,1);c;}) |
#define ttyUSB0Transmit |
( |
|
_char | ) |
|
Value:{ \
char c = _char; \
int __attribute__((unused)) ret = write(
fd,&c,1); \
}
Definition at line 14 of file serial.h.
int serial_init |
( |
char * |
port_name | ) |
|
static int ttyUSB0ChAvailable |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 26 of file serial.c.
Referenced by adc_read(), bat_voltage_ardrone2_init(), bat_voltage_ardrone2_periodic(), bluegiga_transmit(), electrical_ardrone2_setup(), main(), nmea_configure(), sdlogger_spi_direct_periodic(), send_buffer_to_uart(), serial_init(), spi0_arch_init(), spi1_arch_init(), spi_submit(), sys_time_thread_main(), tunnel_event(), uart_receive_handler(), uart_thread(), udp_thread(), v4l2_init(), v4l2_init_subdev(), write_sysfs_int(), and WritePart().