The first C application is traditionally hello.c, so the first realtime kernel module is most naturally hello.o. This sample realtime application shows how simple it is to set up an rt-thread. It contains the three basic functions of every kernel module:
- init_module registers the module and sets up resources
- The actual "say_hello" task
- cleanup_module releases resources and unregisters the module