Compile error in misc/regulator/regulator_example.c
Summary
- compile rtems_example failed with error
[ 97/175] Linking build/aarch64-rtems6-phytium_pi/misc/nanosecond_tick_wrap/nanoseconds_tick_wrap.exe
[ 98/175] Compiling misc/regulator/regulator_example.c
[ 99/175] Compiling misc/regulator/rtems_config.c
../../misc/regulator/regulator_example.c: In function 'example_send_messages':
../../misc/regulator/regulator_example.c:134:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_priority'; did you mean 'delivery_thread_priority'?
134 | .output_thread_priority = 16,
| ^~~~~~~~~~~~~~~~~~~~~~
| delivery_thread_priority
../../misc/regulator/regulator_example.c:135:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_stack_size'; did you mean 'delivery_thread_stack_size'?
135 | .output_thread_stack_size = 0,
| ^~~~~~~~~~~~~~~~~~~~~~~~
| delivery_thread_stack_size
../../misc/regulator/regulator_example.c:136:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_period'; did you mean 'delivery_thread_period'?
136 | .output_thread_period = RTEMS_MILLISECONDS_TO_TICKS(1000),
| ^~~~~~~~~~~~~~~~~~~~
| delivery_thread_period
Waf: Leaving directory `/root/rtems-work/rtems/rtems-examples/build/aarch64-rtems6-phytium_pi'
Build failed
-> task in 'regulator_example.exe' failed with exit status 1 (run with -v to display more information)
make: *** [/root/rtems-work/tools/rtems_phytium_pi.mk:40: phytium_pi_aarch64_example] Error 1
- I modify code as gcc prompted and works ok
Steps to reproduce