Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.27 KB

readme.md

File metadata and controls

42 lines (35 loc) · 1.27 KB

Simple software timer module

  • 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 either example or lib or tests
# 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 to cmake and clang-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