Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
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/gpio.h>
#include <libopencm3/stm32/rcc.h>
+ Include dependency graph for my_debug_servo.h:

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.

#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_periph_clock_enable(RCC_GPIOC); \
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO6 | GPIO7 | GPIO8); \
}
#define GPIOC
Definition: gpio_arch.h:34
#define DEBUG_S1_OFF()
#define GPIO8
Definition: gpio_arch.h:45
#define GPIO7
Definition: gpio_arch.h:44
#define DEBUG_S3_OFF()
#define GPIO6
Definition: gpio_arch.h:43
#define DEBUG_S2_OFF()

Definition at line 35 of file my_debug_servo.h.

#define DEBUG_SERVO2_INIT ( )
Value:
{ \
/* S4: PC9 */ \
GPIOC_BSRR = GPIO9; \
rcc_periph_clock_enable(RCC_GPIOC); \
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO9); \
/* S5: PB8 and S6: PB9 */ \
GPIOB_BSRR = GPIO8 | GPIO9; \
rcc_periph_clock_enable(RCC_GPIOB); \
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_50_MHZ, \
GPIO_CNF_OUTPUT_PUSHPULL, GPIO8 | GPIO9); \
}
#define GPIO9
Definition: gpio_arch.h:46
#define DEBUG_S5_OFF()
#define GPIOC
Definition: gpio_arch.h:34
#define GPIOB
Definition: gpio_arch.h:35
#define DEBUG_S6_OFF()
#define GPIO8
Definition: gpio_arch.h:45
#define DEBUG_S4_OFF()

Definition at line 46 of file my_debug_servo.h.