Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/gcc.h:69,
- from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain.h:41,
- from /microros_ws/firmware/zephyrproject/zephyr/include/sys/printk.h:11,
- from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:3:
- /microros_ws/firmware/zephyrproject/zephyr/include/device.h:79:39: error: '__device_dts_ord_ZEPHYR_USER_NODE_P_signal_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
- 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
- | ^~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/common.h:124:26: note: in definition of macro '_DO_CONCAT'
- 124 | #define _DO_CONCAT(x, y) x ## y
- | ^
- /microros_ws/firmware/zephyrproject/zephyr/include/device.h:79:31: note: in expansion of macro '_CONCAT'
- 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
- | ^~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/device.h:256:37: note: in expansion of macro 'DEVICE_NAME_GET'
- 256 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
- | ^~~~~~~~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/device.h:270:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
- 270 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
- | ^~~~~~~~~~~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:355:11: note: in expansion of macro 'DEVICE_DT_GET'
- 355 | .port = DEVICE_DT_GET(DT_GPIO_CTLR(node_id, prop)), \
- | ^~~~~~~~~~~~~
- /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
- 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
- | ^~~~~~~~~~~~~~~~
- In file included from /microros_ws/firmware/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
- from /microros_ws/firmware/zephyrproject/zephyr/include/arch/cpu.h:19,
- from /microros_ws/firmware/zephyrproject/zephyr/include/kernel_includes.h:33,
- from /microros_ws/firmware/zephyrproject/zephyr/include/kernel.h:17,
- from /microros_ws/firmware/zephyrproject/zephyr/include/zephyr.h:18,
- from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:5,
- from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
- /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:53: error: 'ZEPHYR_USER_NODE_P_signal_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
- 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
- | ^~~~~~~~~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:2210:24: note: in definition of macro 'DT_CAT'
- 2210 | #define DT_CAT(a1, a2) a1 ## a2
- | ^~
- /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:920:2: note: in expansion of macro 'DT_PROP'
- 920 | DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
- | ^~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:158:2: note: in expansion of macro 'DT_PHA_BY_IDX'
- 158 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
- | ^~~~~~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:169:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
- 169 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
- | ^~~~~~~~~~~~~~~~~~
- /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:356:10: note: in expansion of macro 'DT_GPIO_PIN'
- 356 | .pin = DT_GPIO_PIN(node_id, prop), \
- | ^~~~~~~~~~~
- /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
- 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
- | ^~~~~~~~~~~~~~~~
- In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
- /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:48:23: error: expected declaration specifiers or '...' before '&' token
- 48 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
- | ^
- In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:9,
- from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
- /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:73:33: error: expected declaration specifiers or '...' before '(' token
- 73 | #define GPIO_OUTPUT_ACTIVE (GPIO_OUTPUT | \
- | ^
- /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:48:32: note: in expansion of macro 'GPIO_OUTPUT_ACTIVE'
- 48 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
- | ^~~~~~~~~~~~~~~~~~
- make[2]: *** [CMakeFiles/app.dir/build.make:63: CMakeFiles/app.dir/src/main.c.obj] Error 1
- make[1]: *** [CMakeFiles/Makefile2:2164: CMakeFiles/app.dir/all] Error 2
- make: *** [Makefile:84: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement