[PATCH rtems-examples 00/14] RTEMS Examples Clean Up

Joel Sherrill joel at rtems.org
Thu Feb 24 23:23:10 UTC 2022


On Thu, Feb 24, 2022 at 4:50 PM Chris Johns <chrisj at rtems.org> wrote:

> Looks good, OK to push.
>

Thanks for the ack.

>
> Thanks for all the examples.
>

I had a backlog from user reports, class examples, etc. Plus I
don't like seeing the warnings.

It would be good to work at least references to them through
the manuals.

--joel

>
> Chris
>
> On 24/2/22 9:21 am, Joel Sherrill wrote:
> > Hi
> >
> > In using the examples in classes and writing examples for users,
> > I have accumulated some changes. These changes cover a bit of
> > territory.
> >
> >   + Fix build issues
> >   + Address warnings
> >   + Fix issues from RTEMS updates
> >   + General clean up
> >   + Add some missing files to RTEMS Makefile build
> >   + Added example of using std::map from RTEMS
> >   + Added example for restarting a POSIX thread
> >   + Added example for a User Device Driver accessed via POSIX system
> calls
> >   + Added ticker showing stack checker and CPU usage
> >   + Added ticker with tracing enabled so it wasn't bolted on both_hello
> >
> > Yes to many of us, some of these examples may not be needed
> > but they do help users and show real functional approaches.
> >
> > --joel
> >
> >
> > Joel Sherrill (23):
> >   Conditionalize CONFIGURE_TERMIOS_DISABLE so the examples span versions
> >   psx_sigint: Add new example of POSIX signal and default mask
> >   psx_initial_sigmask: Add POSIX initial signal mask reporter
> >   psx_sched_report/rtems_config.c: Fix spacing
> >   cxx_stdmap: Add example of using std::map with RTEMS
> >   cxx_throw/wscript: Fix comment
> >   classic_api/triple_period/tasks.c: Clean up formatting
> >   posix_api/psx_example_3/test3.c: Clean up and allow to build on Linux
> >   led/delay/init.c: Use local variable for one second of ticks
> >   led/event_server/init.c: Use names for events to reflect application
> >     intent
> >   Add User Driver Example
> >   Add POSIX task and thread restart examples.
> >   ticker_stackhk: Add variant which prints stack and cpu usage reports
> >   tracing: Add a special ticker variant to show tracing.
> >   posix_api/Makefile ticker/Makefile: Add missing examples
> >   benchmarks/nbench: Fix warnings
> >   classic_api/classic_signal: Fix warnings
> >   misc/minimum/: Fix warnings
> >   misc/nanosecond_tick_wrap: Fix warnings
> >   ticker/low_ticker: Fix warnings
> >   ticker/low_ticker1: Fix warnings
> >   ticker/low_ticker2: Fix warnings
> >   file_io/crc/.gitignore misc/extract_example/.gitignore: New files
> >
> >  benchmarks/nbench/main.c                          |    3 +-
> >  benchmarks/nbench/nbench-byte-2.2.3/emfloat.c     |    6 +
> >  benchmarks/nbench/nbench-byte-2.2.3/hardware.c    |    4 +
> >  benchmarks/nbench/nbench-byte-2.2.3/nbench0.c     |    1 +
> >  benchmarks/nbench/nbench-byte-2.2.3/nbench1.c     |    4 +-
> >  classic_api/classic_signal/test.c                 |    4 +-
> >  classic_api/triple_period/init.c                  |   17 +-
> >  classic_api/triple_period/tasks.c                 |   21 +-
> >  cxx/Makefile                                      |    6 +-
> >  cxx/cxx_stdmap/Makefile                           |   41 +
> >  cxx/cxx_stdmap/main.cc                            |   33 +
> >  cxx/cxx_stdmap/rtems_config.c                     |   47 +
> >  cxx/cxx_stdmap/wscript                            |   14 +
> >  cxx/cxx_throw/wscript                             |    2 +-
> >  cxx/wscript                                       |    1 +
> >  file_io/crc/.gitignore                            |    5 +
> >  hello/both_hello/hello-deep.ini                   |   47 -
> >  hello/both_hello/hello.ini                        |   45 -
> >  hello/both_hello/wscript                          |   22 +-
> >  led/delay/init.c                                  |   10 +-
> >  led/event_server/init.c                           |   16 +-
> >  misc/Makefile                                     |    2 +-
> >  misc/extract_example/.gitignore                   |    1 +
> >  misc/minimum/test.c                               |   22 +-
> >  misc/nanosecond_tick_wrap/init.c                  |    4 +-
> >  misc/userdrv/Makefile                             |   20 +
> >  misc/userdrv/main.c                               |  100 +
> >  misc/userdrv/mainpage.h                           |   26 +
> >  misc/userdrv/rtems_config.c                       |   82 +
> >  misc/userdrv/userdrv.c                            |  254 +++
> >  misc/userdrv/userdrv.cfg                          | 2280
> +++++++++++++++++++++
> >  misc/userdrv/userdrv.h                            |  264 +++
> >  misc/userdrv/wscript                              |   14 +
> >  misc/wscript                                      |    1 +
> >  posix_api/Makefile                                |    3 +
> >  posix_api/psx_example_3/test3.c                   |   45 +-
> >  posix_api/psx_initial_sigmask/Makefile            |   20 +
> >  posix_api/psx_initial_sigmask/main.c              |  125 ++
> >  posix_api/psx_initial_sigmask/rtems_config.c      |   48 +
> >  posix_api/psx_initial_sigmask/wscript             |   15 +
> >  posix_api/psx_sched_report/rtems_config.c         |    1 +
> >  posix_api/psx_sigint/Makefile                     |   20 +
> >  posix_api/psx_sigint/main.c                       |   99 +
> >  posix_api/psx_sigint/rtems_config.c               |   48 +
> >  posix_api/psx_sigint/wscript                      |   15 +
> >  posix_api/psx_task_restart/Makefile               |   20 +
> >  posix_api/psx_task_restart/psx_task_restart.c     |  158 ++
> >  posix_api/psx_task_restart/rtems_config.c         |   48 +
> >  posix_api/psx_task_restart/wscript                |   15 +
> >  posix_api/psx_thread_restart/Makefile             |   20 +
> >  posix_api/psx_thread_restart/psx_thread_restart.c |    3 +
> >  posix_api/psx_thread_restart/rtems_config.c       |    2 +
> >  posix_api/psx_thread_restart/wscript              |   15 +
> >  posix_api/wscript                                 |    3 +
> >  ticker/Makefile                                   |    7 +-
> >  ticker/low_ticker/init.c                          |   26 +-
> >  ticker/low_ticker1/init.c                         |   29 +-
> >  ticker/low_ticker2/init.c                         |   19 +-
> >  ticker/ticker_stackchk/Makefile                   |   23 +
> >  ticker/ticker_stackchk/init.c                     |  106 +
> >  ticker/ticker_stackchk/wscript                    |   15 +
> >  ticker/ticker_trace/Makefile                      |   23 +
> >  ticker/ticker_trace/init.c                        |   99 +
> >  ticker/ticker_trace/ticker-deep.ini               |   46 +
> >  ticker/ticker_trace/ticker.ini                    |   43 +
> >  ticker/ticker_trace/wscript                       |   26 +
> >  ticker/wscript                                    |    7 +-
> >  67 files changed, 4419 insertions(+), 192 deletions(-)
> >  create mode 100644 cxx/cxx_stdmap/Makefile
> >  create mode 100644 cxx/cxx_stdmap/main.cc
> >  create mode 100644 cxx/cxx_stdmap/rtems_config.c
> >  create mode 100644 cxx/cxx_stdmap/wscript
> >  create mode 100644 file_io/crc/.gitignore
> >  delete mode 100644 hello/both_hello/hello-deep.ini
> >  delete mode 100644 hello/both_hello/hello.ini
> >  create mode 100644 misc/extract_example/.gitignore
> >  create mode 100644 misc/userdrv/Makefile
> >  create mode 100644 misc/userdrv/main.c
> >  create mode 100644 misc/userdrv/mainpage.h
> >  create mode 100644 misc/userdrv/rtems_config.c
> >  create mode 100644 misc/userdrv/userdrv.c
> >  create mode 100644 misc/userdrv/userdrv.cfg
> >  create mode 100644 misc/userdrv/userdrv.h
> >  create mode 100644 misc/userdrv/wscript
> >  create mode 100644 posix_api/psx_initial_sigmask/Makefile
> >  create mode 100644 posix_api/psx_initial_sigmask/main.c
> >  create mode 100644 posix_api/psx_initial_sigmask/rtems_config.c
> >  create mode 100644 posix_api/psx_initial_sigmask/wscript
> >  create mode 100644 posix_api/psx_sigint/Makefile
> >  create mode 100644 posix_api/psx_sigint/main.c
> >  create mode 100644 posix_api/psx_sigint/rtems_config.c
> >  create mode 100644 posix_api/psx_sigint/wscript
> >  create mode 100644 posix_api/psx_task_restart/Makefile
> >  create mode 100644 posix_api/psx_task_restart/psx_task_restart.c
> >  create mode 100644 posix_api/psx_task_restart/rtems_config.c
> >  create mode 100644 posix_api/psx_task_restart/wscript
> >  create mode 100644 posix_api/psx_thread_restart/Makefile
> >  create mode 100644 posix_api/psx_thread_restart/psx_thread_restart.c
> >  create mode 100644 posix_api/psx_thread_restart/rtems_config.c
> >  create mode 100644 posix_api/psx_thread_restart/wscript
> >  create mode 100644 ticker/ticker_stackchk/Makefile
> >  create mode 100644 ticker/ticker_stackchk/init.c
> >  create mode 100644 ticker/ticker_stackchk/wscript
> >  create mode 100644 ticker/ticker_trace/Makefile
> >  create mode 100644 ticker/ticker_trace/init.c
> >  create mode 100644 ticker/ticker_trace/ticker-deep.ini
> >  create mode 100644 ticker/ticker_trace/ticker.ini
> >  create mode 100644 ticker/ticker_trace/wscript
> >
>


More information about the devel mailing list