mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +08:00
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:
@@ -11,6 +11,7 @@
|
|||||||
# Board support modules
|
# Board support modules
|
||||||
#
|
#
|
||||||
MODULES += drivers/device
|
MODULES += drivers/device
|
||||||
|
MODULES += drivers/blinkm
|
||||||
MODULES += modules/sensors
|
MODULES += modules/sensors
|
||||||
MODULES += drivers/ms5611
|
MODULES += drivers/ms5611
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <px4_defines.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _BLINKMIOCBASE (0x2900)
|
#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 */
|
/** play the named script in *(char *)arg, repeating forever */
|
||||||
#define BLINKM_PLAY_SCRIPT_NAMED _BLINKMIOC(1)
|
#define BLINKM_PLAY_SCRIPT_NAMED _BLINKMIOC(1)
|
||||||
|
|||||||
@@ -1 +1,9 @@
|
|||||||
#define UDID_START 0x1FFF7A10
|
#define UDID_START 0x1FFF7A10
|
||||||
|
|
||||||
|
/*
|
||||||
|
* I2C busses
|
||||||
|
*/
|
||||||
|
#define PX4_I2C_BUS_ESC 1
|
||||||
|
#define PX4_I2C_BUS_ONBOARD 2
|
||||||
|
#define PX4_I2C_BUS_EXPANSION 3
|
||||||
|
#define PX4_I2C_BUS_LED 3
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
#include <px4_config.h>
|
#include <px4_config.h>
|
||||||
#elif defined (__PX4_LINUX)
|
#elif defined (__PX4_LINUX)
|
||||||
#define CONFIG_NFILE_STREAMS 1
|
#define CONFIG_NFILE_STREAMS 1
|
||||||
#define PX4_I2C_BUS_ONBOARD 1
|
|
||||||
|
|
||||||
#define px4_errx(x, ...) errx(x, __VA_ARGS__)
|
#define px4_errx(x, ...) errx(x, __VA_ARGS__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user