-
This is a simple software timer module implemented in C;
-
The idea is to, through one source of time base, be able to enable a pre-defined max number of independent, asynchronous timers with callback capabilities;
-
This is a personal project focused on experimenting with multiple skills such as:
- Jenkins;
- CMake;
- Yocto;
- Bash scripting;
- Unit test (unity);
- Clang formatter;
- Git;
- C programing language;
-
The following commands can be issued:
- Where
<target>
is eitherexample
orlib
ortests
- Where
# Configure
cmake -S . -B build -D TARGET_GROUP=<target>
# Build
cmake --build build --parallel `nproc`
# Install it all
cmake --install build --strip --prefix /custom/path
# Install only headers
cmake --install build --strip --prefix /custom/path --component headers
# Install only shared lib (.so file)
cmake --install build --strip --prefix /custom/path --component sharedlib
- Alternatively, use the
bbuild.sh
script, which is an abstraction tocmake
andclang-format
commands
# [r]ebuild and [e]xecute the example
$ ./bbuild.sh -r -e example
# [r]ebuild and [e]xecute the (unit) tests
$ ./bbuild.sh -r -e tests
# [r]ebuild the shared library (.so file)
$ ./bbuild.sh -r lib