blinkm: merged NuttX and POSIX impelmentations

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-05-06 16:24:18 -07:00
parent 948b47bd33
commit a0d58552a0
3 changed files with 6 additions and 1020 deletions

View File

@ -275,7 +275,11 @@ const char *const BlinkM::script_names[] = {
extern "C" __EXPORT int blinkm_main(int argc, char *argv[]);
BlinkM::BlinkM(int bus, int blinkm) :
I2C("blinkm", BLINKM0_DEVICE_PATH, bus, blinkm),
I2C("blinkm", BLINKM0_DEVICE_PATH, bus, blinkm
#ifdef __PX4_NUTTX
, 100000
#endif
),
led_color_1(LED_OFF),
led_color_2(LED_OFF),
led_color_3(LED_OFF),

File diff suppressed because it is too large Load Diff

View File

@ -37,10 +37,6 @@
MODULE_COMMAND = blinkm
ifeq ($(PX4_TARGET_OS),nuttx)
SRCS = blinkm_nuttx.cpp
else
SRCS = blinkm_posix.cpp
endif
SRCS = blinkm.cpp
MAXOPTIMIZATION = -Os