forked from Archive/PX4-Autopilot
blinkm: merged NuttX and POSIX impelmentations
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
948b47bd33
commit
a0d58552a0
|
@ -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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue