summaryrefslogtreecommitdiff
path: root/src/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h
index c547f6e..e85093f 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -10,6 +10,8 @@
#include <stdint.h>
#include "uart.h"
+#include "pwm.h"
+#include "helpers.h"
#define _CMD_CNT 2
#define _CMD_MAX_ARGC 4
@@ -21,8 +23,19 @@ void cmd_init();
void cmd_tick(char _c);
+/**
+ * argc=3
+ *
+ * 0: Pin Num
+ * 1-2: Dutycycle in HEX (00-FF)
+ */
void cmd_set_pwm(uint8_t _argv[]);
+/**
+ * argc=1
+ *
+ * 0: Error type
+ */
void cmd_err(uint8_t _argv[]);
#endif