aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/drv_oreoled.h
diff options
context:
space:
mode:
authorRandy Mackay <rmackay9@yahoo.com>2015-03-02 14:30:01 +0900
committerLorenz Meier <lm@inf.ethz.ch>2015-03-02 08:29:12 +0100
commit48bf84ff3754109fe6cf8e0e161eb70ae0987bfe (patch)
tree4253c203a78c4cddf7d7d5cafc8279ec817fdece /src/drivers/drv_oreoled.h
parent690b29d271576fdf02104c637ee2a0b15554e648 (diff)
downloadpx4-firmware-48bf84ff3754109fe6cf8e0e161eb70ae0987bfe.tar.gz
px4-firmware-48bf84ff3754109fe6cf8e0e161eb70ae0987bfe.tar.bz2
px4-firmware-48bf84ff3754109fe6cf8e0e161eb70ae0987bfe.zip
oreoled: support send_bytes ioctl
Also increase maximum command length to 24 bytes
Diffstat (limited to 'src/drivers/drv_oreoled.h')
-rw-r--r--src/drivers/drv_oreoled.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/drv_oreoled.h b/src/drivers/drv_oreoled.h
index bc53f04a5..0dcb10a7b 100644
--- a/src/drivers/drv_oreoled.h
+++ b/src/drivers/drv_oreoled.h
@@ -58,6 +58,9 @@
/** run macro */
#define OREOLED_RUN_MACRO _OREOLEDIOC(2)
+/** send bytes */
+#define OREOLED_SEND_BYTES _OREOLEDIOC(3)
+
/* Oreo LED driver supports up to 4 leds */
#define OREOLED_NUM_LEDS 4
@@ -65,7 +68,7 @@
#define OREOLED_ALL_INSTANCES 0xff
/* maximum command length that can be sent to LEDs */
-#define OREOLED_CMD_LENGTH_MAX 10
+#define OREOLED_CMD_LENGTH_MAX 24
/* enum passed to OREOLED_SET_MODE ioctl()
* defined by hardware */