[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5160] fundamental improvemements of this awsome uti
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [5160] fundamental improvemements of this awsome utility |
Date: |
Mon, 26 Jul 2010 21:13:22 +0000 |
Revision: 5160
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5160
Author: poine
Date: 2010-07-26 21:13:22 +0000 (Mon, 26 Jul 2010)
Log Message:
-----------
fundamental improvemements of this awsome utility
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/stm32/my_debug_servo.h
Modified: paparazzi3/trunk/sw/airborne/stm32/my_debug_servo.h
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/my_debug_servo.h 2010-07-26 21:12:44 UTC
(rev 5159)
+++ paparazzi3/trunk/sw/airborne/stm32/my_debug_servo.h 2010-07-26 21:13:22 UTC
(rev 5160)
@@ -4,7 +4,32 @@
/* using servo 2 connector as debug */
+#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() { \
/* S1: PC6 S2: PC7 S3: PC8 */
\
GPIO_InitTypeDef GPIO_InitStructure; \
@@ -14,7 +39,10 @@
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; \
GPIO_Init(GPIOC, &GPIO_InitStructure); \
- }
+ DEBUG_S1_OFF(); \
+ DEBUG_S2_OFF(); \
+ DEBUG_S3_OFF(); \
+ }
#define DEBUG_SERVO2_INIT() { \
/* S4: PC9 */ \
@@ -32,18 +60,10 @@
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; \
GPIO_Init(GPIOB, &GPIO_InitStructure); \
+ DEBUG_S4_OFF(); \
+ DEBUG_S5_OFF(); \
+ DEBUG_S6_OFF(); \
}
-#define DEBUG_S1_TOGGLE() { GPIOC->ODR ^= GPIO_Pin_6; }
-#define DEBUG_S2_TOGGLE() { GPIOC->ODR ^= GPIO_Pin_7; }
-
-#define DEBUG_S3_TOGGLE() { GPIOC->ODR ^= GPIO_Pin_8; }
-
-#define DEBUG_S4_TOGGLE() { GPIOC->ODR ^= GPIO_Pin_9; }
-
-#define DEBUG_S5_TOGGLE() { GPIOB->ODR ^= GPIO_Pin_8; }
-
-#define DEBUG_S6_TOGGLE() { GPIOB->ODR ^= GPIO_Pin_9; }
-
#endif /* MY_DEBUG_SERVO_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5160] fundamental improvemements of this awsome utility,
antoine drouin <=