27 #ifndef DATALINK_MAVLINK_H
28 #define DATALINK_MAVLINK_H
30 #define MAVLINK_USE_CONVENIENCE_FUNCTIONS
31 #define MAVLINK_ALIGNED_FIELDS 0
33 #include <mavlink/mavlink_types.h>
44 #define MAVLINK_DEBUG(...) {}
47 #if MAVLINK_DEBUG == printf
57 #define MAVLINK_DEV uart1
63 #define MAVLinkDev (&(MAVLINK_DEV).device)
64 #define MAVLinkTransmit(c) MAVLinkDev->put_byte(MAVLinkDev->periph, 0, c)
65 #define MAVLinkChAvailable() MAVLinkDev->char_available(MAVLinkDev->periph)
66 #define MAVLinkGetch() MAVLinkDev->get_byte(MAVLinkDev->periph)
67 #define MAVLinkSendMessage() MAVLinkDev->send_message(MAVLinkDev->periph, 0)
89 #endif // DATALINK_MAVLINK_H
void mavlink_init(void)
Module functions.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mavlink_event(void)
Event MAVLink calls.
void mavlink_periodic_telemetry(void)
Send periodic mavlink messages as defined in Mavlink process of telemetry xml file.
#define MAVLinkTransmit(c)
mavlink_system_t mavlink_system
static void comm_send_ch(mavlink_channel_t chan, uint8_t ch)
Send one char (uint8_t) over a comm channel.
void mavlink_periodic(void)
Periodic MAVLink calls.