Skip to content

Software timer module - C, cmake, Jenkins, bash, unity tests.

License

Notifications You must be signed in to change notification settings

TSMotter/software-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Software timer module - C, cmake, Jenkins, bash, unity tests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published