Linux: Add support for blinkm to test I2C layering

Running the blinkm device to test I2C

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:13:24 -07:00
parent cd30b4d5ca
commit df53defca6
6 changed files with 1035 additions and 2 deletions
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -42,6 +42,7 @@
#pragma once
#include <px4_defines.h>
#include <stdint.h>
#include <sys/ioctl.h>
@@ -52,7 +53,7 @@
*/
#define _BLINKMIOCBASE (0x2900)
#define _BLINKMIOC(_n) (_IOC(_BLINKMIOCBASE, _n))
#define _BLINKMIOC(_n) (_PX4_IOC(_BLINKMIOCBASE, _n))
/** play the named script in *(char *)arg, repeating forever */
#define BLINKM_PLAY_SCRIPT_NAMED _BLINKMIOC(1)