aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware/px4io.c
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-10-08 17:03:57 +0200
committerJulian Oes <julian@oes.ch>2013-10-08 17:03:57 +0200
commit1b9e2af7425615130ddbcf79b89859c97a791a9c (patch)
tree938e95decf73811c3c0c5ff2207c8e2a5fd029dd /src/modules/px4iofirmware/px4io.c
parent19879432ad6cf709af25192401829719defd2983 (diff)
downloadpx4-firmware-1b9e2af7425615130ddbcf79b89859c97a791a9c.tar.gz
px4-firmware-1b9e2af7425615130ddbcf79b89859c97a791a9c.tar.bz2
px4-firmware-1b9e2af7425615130ddbcf79b89859c97a791a9c.zip
Moved PWM ramp to systemlib
Diffstat (limited to 'src/modules/px4iofirmware/px4io.c')
-rw-r--r--src/modules/px4iofirmware/px4io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/px4io.c b/src/modules/px4iofirmware/px4io.c
index e70b3fe88..71d649029 100644
--- a/src/modules/px4iofirmware/px4io.c
+++ b/src/modules/px4iofirmware/px4io.c
@@ -50,6 +50,7 @@
#include <drivers/drv_hrt.h>
#include <systemlib/perf_counter.h>
+#include <systemlib/pwm_limit/pwm_limit.h>
#include <stm32_uart.h>
@@ -64,6 +65,8 @@ struct sys_state_s system_state;
static struct hrt_call serial_dma_call;
+pwm_limit_t pwm_limit;
+
/*
* a set of debug buffers to allow us to send debug information from ISRs
*/
@@ -174,6 +177,9 @@ user_start(int argc, char *argv[])
struct mallinfo minfo = mallinfo();
lowsyslog("MEM: free %u, largest %u\n", minfo.mxordblk, minfo.fordblks);
+ /* initialize PWM limit lib */
+ pwm_limit_init(&pwm_limit);
+
#if 0
/* not enough memory, lock down */
if (minfo.mxordblk < 500) {