Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TSMotter/software-timer

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.