Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
my_debug_servo.h File Reference
#include <stm32/gpio.h>
#include <stm32/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 ^= GPIO_Pin_6; }
 
#define DEBUG_S1_ON()   { GPIOC->BSRR = GPIO_Pin_6; }
 
#define DEBUG_S1_OFF()   { GPIOC->BRR = GPIO_Pin_6; }
 
#define DEBUG_S2_TOGGLE()   { GPIOC->ODR ^= GPIO_Pin_7; }
 
#define DEBUG_S2_ON()   { GPIOC->BSRR = GPIO_Pin_7; }
 
#define DEBUG_S2_OFF()   { GPIOC->BRR = GPIO_Pin_7; }
 
#define DEBUG_S3_TOGGLE()   { GPIOC->ODR ^= GPIO_Pin_8; }
 
#define DEBUG_S3_ON()   { GPIOC->BSRR = GPIO_Pin_8; }
 
#define DEBUG_S3_OFF()   { GPIOC->BRR = GPIO_Pin_8; }
 
#define DEBUG_S4_TOGGLE()   { GPIOC->ODR ^= GPIO_Pin_9; }
 
#define DEBUG_S4_ON()   { GPIOC->BSRR = GPIO_Pin_9; }
 
#define DEBUG_S4_OFF()   { GPIOC->BRR = GPIO_Pin_9; }
 
#define DEBUG_S5_TOGGLE()   { GPIOB->ODR ^= GPIO_Pin_8; }
 
#define DEBUG_S5_ON()   { GPIOB->BSRR = GPIO_Pin_8; }
 
#define DEBUG_S5_OFF()   { GPIOB->BRR = GPIO_Pin_8; }
 
#define DEBUG_S6_TOGGLE()   { GPIOB->ODR ^= GPIO_Pin_9; }
 
#define DEBUG_S6_ON()   { GPIOB->BSRR = GPIO_Pin_9; }
 
#define DEBUG_S6_OFF()   { GPIOB->BRR = GPIO_Pin_9; }
 
#define DEBUG_SERVO1_INIT()
 
#define DEBUG_SERVO2_INIT()
 

Macro Definition Documentation

#define DEBUG_S1_OFF ( )    { GPIOC->BRR = GPIO_Pin_6; }

Definition at line 11 of file my_debug_servo.h.

#define DEBUG_S1_ON ( )    { GPIOC->BSRR = GPIO_Pin_6; }

Definition at line 10 of file my_debug_servo.h.

#define DEBUG_S1_TOGGLE ( )    { GPIOC->ODR ^= GPIO_Pin_6; }

Definition at line 9 of file my_debug_servo.h.

Referenced by on_overo_link_msg_received().

#define DEBUG_S2_OFF ( )    { GPIOC->BRR = GPIO_Pin_7; }

Definition at line 15 of file my_debug_servo.h.

#define DEBUG_S2_ON ( )    { GPIOC->BSRR = GPIO_Pin_7; }

Definition at line 14 of file my_debug_servo.h.

#define DEBUG_S2_TOGGLE ( )    { GPIOC->ODR ^= GPIO_Pin_7; }

Definition at line 13 of file my_debug_servo.h.

#define DEBUG_S3_OFF ( )    { GPIOC->BRR = GPIO_Pin_8; }

Definition at line 19 of file my_debug_servo.h.

#define DEBUG_S3_ON ( )    { GPIOC->BSRR = GPIO_Pin_8; }

Definition at line 18 of file my_debug_servo.h.

#define DEBUG_S3_TOGGLE ( )    { GPIOC->ODR ^= GPIO_Pin_8; }

Definition at line 17 of file my_debug_servo.h.

#define DEBUG_S4_OFF ( )    { GPIOC->BRR = GPIO_Pin_9; }

Definition at line 23 of file my_debug_servo.h.

#define DEBUG_S4_ON ( )    { GPIOC->BSRR = GPIO_Pin_9; }

Definition at line 22 of file my_debug_servo.h.

#define DEBUG_S4_TOGGLE ( )    { GPIOC->ODR ^= GPIO_Pin_9; }

Definition at line 21 of file my_debug_servo.h.

Referenced by exti2_irq_handler().

#define DEBUG_S5_OFF ( )    { GPIOB->BRR = GPIO_Pin_8; }

Definition at line 27 of file my_debug_servo.h.

#define DEBUG_S5_ON ( )    { GPIOB->BSRR = GPIO_Pin_8; }

Definition at line 26 of file my_debug_servo.h.

#define DEBUG_S5_TOGGLE ( )    { GPIOB->ODR ^= GPIO_Pin_8; }

Definition at line 25 of file my_debug_servo.h.

#define DEBUG_S6_OFF ( )    { GPIOB->BRR = GPIO_Pin_9; }

Definition at line 31 of file my_debug_servo.h.

#define DEBUG_S6_ON ( )    { GPIOB->BSRR = GPIO_Pin_9; }

Definition at line 30 of file my_debug_servo.h.

#define DEBUG_S6_TOGGLE ( )    { GPIOB->ODR ^= GPIO_Pin_9; }

Definition at line 29 of file my_debug_servo.h.

#define DEBUG_SERVO1_INIT ( )
Value:
{ \
/* S1: PC6 S2: PC7 S3: PC8 */ \
GPIO_InitTypeDef GPIO_InitStructure; \
GPIOC->BSRR = GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8 ; \
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); \
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8; \
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; \
GPIO_Init(GPIOC, &GPIO_InitStructure); \
}
#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 */ \
GPIO_InitTypeDef GPIO_InitStructure; \
GPIOC->BSRR = GPIO_Pin_9; \
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); \
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9; \
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; \
GPIO_Init(GPIOC, &GPIO_InitStructure); \
/* S5: PB8 and S6: PB9 */ \
GPIOB->BSRR = GPIO_Pin_8 | GPIO_Pin_9; \
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); \
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8 | GPIO_Pin_9; \
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; \
GPIO_Init(GPIOB, &GPIO_InitStructure); \
}
#define DEBUG_S5_OFF()
#define DEBUG_S6_OFF()
#define DEBUG_S4_OFF()

Definition at line 49 of file my_debug_servo.h.

Referenced by main_init_hw().