Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
my_debug_servo.h File Reference
#include <libopencm3/stm32/f1/gpio.h>
#include <libopencm3/stm32/f1/rcc.h>
+ Include dependency graph for my_debug_servo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_S1_TOGGLE()   { GPIOC_ODR ^= GPIO6; }
 
#define DEBUG_S1_ON()   { GPIOC_BSRR = GPIO6; }
 
#define DEBUG_S1_OFF()   { GPIOC_BRR = GPIO6; }
 
#define DEBUG_S2_TOGGLE()   { GPIOC_ODR ^= GPIO7; }
 
#define DEBUG_S2_ON()   { GPIOC_BSRR = GPIO7; }
 
#define DEBUG_S2_OFF()   { GPIOC_BRR = GPIO7; }
 
#define DEBUG_S3_TOGGLE()   { GPIOC_ODR ^= GPIO8; }
 
#define DEBUG_S3_ON()   { GPIOC_BSRR = GPIO8; }
 
#define DEBUG_S3_OFF()   { GPIOC_BRR = GPIO8; }
 
#define DEBUG_S4_TOGGLE()   { GPIOC_ODR ^= GPIO9; }
 
#define DEBUG_S4_ON()   { GPIOC_BSRR = GPIO9; }
 
#define DEBUG_S4_OFF()   { GPIOC_BRR = GPIO9; }
 
#define DEBUG_S5_TOGGLE()   { GPIOB_ODR ^= GPIO8; }
 
#define DEBUG_S5_ON()   { GPIOB_BSRR = GPIO8; }
 
#define DEBUG_S5_OFF()   { GPIOB_BRR = GPIO8; }
 
#define DEBUG_S6_TOGGLE()   { GPIOB_ODR ^= GPIO9; }
 
#define DEBUG_S6_ON()   { GPIOB_BSRR = GPIO9; }
 
#define DEBUG_S6_OFF()   { GPIOB_BRR = GPIO9; }
 
#define DEBUG_SERVO1_INIT()
 
#define DEBUG_SERVO2_INIT()
 

Macro Definition Documentation

#define DEBUG_S1_OFF ( )    { GPIOC_BRR = GPIO6; }

Definition at line 11 of file my_debug_servo.h.

#define DEBUG_S1_ON ( )    { GPIOC_BSRR = GPIO6; }

Definition at line 10 of file my_debug_servo.h.

#define DEBUG_S1_TOGGLE ( )    { GPIOC_ODR ^= GPIO6; }

Definition at line 9 of file my_debug_servo.h.

Referenced by on_overo_link_msg_received().

#define DEBUG_S2_OFF ( )    { GPIOC_BRR = GPIO7; }

Definition at line 15 of file my_debug_servo.h.

#define DEBUG_S2_ON ( )    { GPIOC_BSRR = GPIO7; }

Definition at line 14 of file my_debug_servo.h.

#define DEBUG_S2_TOGGLE ( )    { GPIOC_ODR ^= GPIO7; }

Definition at line 13 of file my_debug_servo.h.

#define DEBUG_S3_OFF ( )    { GPIOC_BRR = GPIO8; }

Definition at line 19 of file my_debug_servo.h.

#define DEBUG_S3_ON ( )    { GPIOC_BSRR = GPIO8; }

Definition at line 18 of file my_debug_servo.h.

#define DEBUG_S3_TOGGLE ( )    { GPIOC_ODR ^= GPIO8; }

Definition at line 17 of file my_debug_servo.h.

#define DEBUG_S4_OFF ( )    { GPIOC_BRR = GPIO9; }

Definition at line 23 of file my_debug_servo.h.

#define DEBUG_S4_ON ( )    { GPIOC_BSRR = GPIO9; }

Definition at line 22 of file my_debug_servo.h.

#define DEBUG_S4_TOGGLE ( )    { GPIOC_ODR ^= GPIO9; }

Definition at line 21 of file my_debug_servo.h.

#define DEBUG_S5_OFF ( )    { GPIOB_BRR = GPIO8; }

Definition at line 27 of file my_debug_servo.h.

#define DEBUG_S5_ON ( )    { GPIOB_BSRR = GPIO8; }

Definition at line 26 of file my_debug_servo.h.

#define DEBUG_S5_TOGGLE ( )    { GPIOB_ODR ^= GPIO8; }

Definition at line 25 of file my_debug_servo.h.

#define DEBUG_S6_OFF ( )    { GPIOB_BRR = GPIO9; }

Definition at line 31 of file my_debug_servo.h.

#define DEBUG_S6_ON ( )    { GPIOB_BSRR = GPIO9; }

Definition at line 30 of file my_debug_servo.h.

#define DEBUG_S6_TOGGLE ( )    { GPIOB_ODR ^= GPIO9; }

Definition at line 29 of file my_debug_servo.h.

#define DEBUG_SERVO1_INIT ( )
Value:
{ \
/* S1: PC6 S2: PC7 S3: PC8 */ \
GPIOC_BSRR = GPIO6 | GPIO7 | GPIO8 ; \
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN); \
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO6 | GPIO7 | GPIO8); \
}
#define DEBUG_S1_OFF()
#define DEBUG_S3_OFF()
#define DEBUG_S2_OFF()

Definition at line 35 of file my_debug_servo.h.

Referenced by main(), and main_init_hw().

#define DEBUG_SERVO2_INIT ( )
Value:
{ \
/* S4: PC9 */ \
GPIOC_BSRR = GPIO9; \
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN); \
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO9); \
/* S5: PB8 and S6: PB9 */ \
GPIOB_BSRR = GPIO8 | GPIO9; \
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN); \
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO8 | GPIO9); \
}
#define DEBUG_S5_OFF()
#define DEBUG_S6_OFF()
#define DEBUG_S4_OFF()

Definition at line 46 of file my_debug_servo.h.

Referenced by main_init_hw().