Skip to content

Commit 0ac41d7

Browse files
rzryichoi
authored andcommitted
nuttx: Select board for process info (#1889)
Avoid hardcoding Relate-to: rzr/webthing-iotjs#3 Change-Id: I7cb1ca251f8c69abb73a99d36aac2cb28cd8fe01 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com
1 parent e0b8261 commit 0ac41d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/tools/systemio_common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ if (process.platform === 'linux') {
3939
}
4040
pin.i2c1 = 1;
4141
} else if (process.platform === 'nuttx') {
42-
var stm32_pin = require('stm32f4dis').pin;
42+
var board = process.iotjs.board;
43+
var stm32_pin = require(board).pin;
4344
pin.led = stm32_pin.PA10;
4445
pin.switch = stm32_pin.PA15;
4546
pin.pwm1 = stm32_pin.PWM1.CH1_1;

0 commit comments

Comments
 (0)