|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
30 #define A_RX_PIN GPIO10
31 #define A_RX_PORT A_PORT
32 #define A_TX_PIN GPIO9
33 #define A_TX_PORT A_PORT
37 #define B_RX_PIN GPIO3
38 #define B_RX_PORT B_PORT
39 #define B_TX_PIN GPIO2
40 #define B_TX_PORT B_PORT
48 for (; nCount != 0; nCount--);
void Delay(volatile uint32_t nCount)
int main(int argc, char **argv)
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
static void gpio_clear(ioportid_t port, uint16_t pin)
Clear a gpio output to low level.
Arch independent mcu ( Micro Controller Unit ) utilities.
Architecture independent timing functions.
arch independent LED (Light Emitting Diodes) API
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
static void main_event(void)
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.
void gpio_setup_input_pullup(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs with pull up resistor enabled.
static void gpio_set(ioportid_t port, uint16_t pin)
Set a gpio output to high level.
void mcu_init(void)
Microcontroller peripherals initialization.
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
static void main_periodic(void)