Advertisement
Guest User

error_log

a guest
Jun 7th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. In file included from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/gcc.h:69,
  2. from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain.h:41,
  3. from /microros_ws/firmware/zephyrproject/zephyr/include/sys/printk.h:11,
  4. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:3:
  5. /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)
  6. 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
  7. | ^~~~~~~~~
  8. /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/common.h:124:26: note: in definition of macro '_DO_CONCAT'
  9. 124 | #define _DO_CONCAT(x, y) x ## y
  10. | ^
  11. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:79:31: note: in expansion of macro '_CONCAT'
  12. 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
  13. | ^~~~~~~
  14. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:256:37: note: in expansion of macro 'DEVICE_NAME_GET'
  15. 256 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
  16. | ^~~~~~~~~~~~~~~
  17. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:270:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  18. 270 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
  19. | ^~~~~~~~~~~~~~~~~~
  20. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:355:11: note: in expansion of macro 'DEVICE_DT_GET'
  21. 355 | .port = DEVICE_DT_GET(DT_GPIO_CTLR(node_id, prop)), \
  22. | ^~~~~~~~~~~~~
  23. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
  24. 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  25. | ^~~~~~~~~~~~~~~~
  26. In file included from /microros_ws/firmware/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
  27. from /microros_ws/firmware/zephyrproject/zephyr/include/arch/cpu.h:19,
  28. from /microros_ws/firmware/zephyrproject/zephyr/include/kernel_includes.h:33,
  29. from /microros_ws/firmware/zephyrproject/zephyr/include/kernel.h:17,
  30. from /microros_ws/firmware/zephyrproject/zephyr/include/zephyr.h:18,
  31. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:5,
  32. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  33. /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)
  34. 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  35. | ^~~~~~~~~~~~~~~~
  36. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:2210:24: note: in definition of macro 'DT_CAT'
  37. 2210 | #define DT_CAT(a1, a2) a1 ## a2
  38. | ^~
  39. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:920:2: note: in expansion of macro 'DT_PROP'
  40. 920 | DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
  41. | ^~~~~~~
  42. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:158:2: note: in expansion of macro 'DT_PHA_BY_IDX'
  43. 158 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
  44. | ^~~~~~~~~~~~~
  45. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:169:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  46. 169 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
  47. | ^~~~~~~~~~~~~~~~~~
  48. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:356:10: note: in expansion of macro 'DT_GPIO_PIN'
  49. 356 | .pin = DT_GPIO_PIN(node_id, prop), \
  50. | ^~~~~~~~~~~
  51. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
  52. 45 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  53. | ^~~~~~~~~~~~~~~~
  54. In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  55. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:48:23: error: expected declaration specifiers or '...' before '&' token
  56. 48 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
  57. | ^
  58. In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:9,
  59. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  60. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:73:33: error: expected declaration specifiers or '...' before '(' token
  61. 73 | #define GPIO_OUTPUT_ACTIVE (GPIO_OUTPUT | \
  62. | ^
  63. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:48:32: note: in expansion of macro 'GPIO_OUTPUT_ACTIVE'
  64. 48 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
  65. | ^~~~~~~~~~~~~~~~~~
  66. make[2]: *** [CMakeFiles/app.dir/build.make:63: CMakeFiles/app.dir/src/main.c.obj] Error 1
  67. make[1]: *** [CMakeFiles/Makefile2:2164: CMakeFiles/app.dir/all] Error 2
  68. make: *** [Makefile:84: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement