aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/px4io.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-11-04 16:44:36 -0800
committerpx4dev <px4@purgatory.org>2012-11-04 16:44:36 -0800
commit7fbad5adea0a022d71d8c5c4453cda1244e154b3 (patch)
tree463d00314bf83283deb0fa7f0a42238aa071d5db /apps/px4io/px4io.h
parent06e17eae5d6942e3d2c96f3e313707723b217b18 (diff)
downloadpx4-firmware-7fbad5adea0a022d71d8c5c4453cda1244e154b3.tar.gz
px4-firmware-7fbad5adea0a022d71d8c5c4453cda1244e154b3.tar.bz2
px4-firmware-7fbad5adea0a022d71d8c5c4453cda1244e154b3.zip
Fix PWM channel zero output; pin configuration was being overwritten by USART2 setup.
Diffstat (limited to 'apps/px4io/px4io.h')
-rw-r--r--apps/px4io/px4io.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h
index bbbe91865..7aef88102 100644
--- a/apps/px4io/px4io.h
+++ b/apps/px4io/px4io.h
@@ -53,6 +53,16 @@
#define IO_SERVO_COUNT 8
/*
+ * Debug logging
+ */
+
+#if 1
+# define debug(fmt, ...) lib_lowprintf(fmt "\n", ##args)
+#else
+# define debug(fmt, ...) do {} while(0)
+#endif
+
+/*
* System state structure.
*/
struct sys_state_s
@@ -130,7 +140,7 @@ extern volatile int timers[TIMER_NUM_TIMERS];
/*
* Mixer
*/
-extern int mixer_init(const char *mq_name);
+extern int mixer_init(void);
/*
* Safety switch/LED.