summaryrefslogtreecommitdiffstats
path: root/example
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Apply update 6 -> 8 fixesHEADmasterWilliam A. Kennington III2019-06-271-2/+3
| | | | | Change-Id: I327de53cbed42d46b88f40f0b15637fda6896f8b Signed-off-by: William A. Kennington III <wak@google.com>
* autotools: RemoveWilliam A. Kennington III2019-04-261-21/+0
| | | | | | | Meson is now used to build this package in all of the necessary places. Change-Id: Ic5155621967fa94ec03eced2193e0d453b174eba Signed-off-by: William A. Kennington III <wak@google.com>
* meson: Use declare_dependency for librariesWilliam A. Kennington III2019-04-031-3/+1
| | | | | | | | | Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look like any other system dependency. Change-Id: Ife3bcd3dcbd423f08c513f9a05fc8cabff41e2f6 Signed-off-by: William A. Kennington III <wak@google.com>
* example/heartbeat: Add signal handlingWilliam A. Kennington III2019-03-294-3/+27
| | | | | | | | | This makes the example a little more interesting as we now have multiple sources and we can analyze memory safety with valgrind by just sending a SIGINT to quit cleanly. Change-Id: Id15fe58f798d3b137f91228025f48a5e4cd5fc50 Signed-off-by: William A. Kennington III <wak@google.com>
* meson: Add alternative build systemWilliam A. Kennington III2018-12-131-0/+13
| | | | | | | | For now both autotools and meson will be maintained side by side. Eventually we should remove the autotools build system. Change-Id: I04382b17d5267ee218e2658fc163da17853f637a Signed-off-by: William A. Kennington III <wak@google.com>
* utility/timer: Implement oneshot timersWilliam A. Kennington III2018-09-262-0/+63
| | | | | | | | | | | | | | | This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up the timer less verbose if you do not already know the timeout interval. Tested: Run through unit tests and did a sample integration with phosphor-watchdog and phosphor-networkd. Verified that the new oneshot example works as expected. Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666 Signed-off-by: William A. Kennington III <wak@google.com>
* example: Add a repeating timer sampleWilliam A. Kennington III2018-09-262-0/+39
| | | | | | | | | Tested: Ran through unit test suite and manually executed the example program to make sure it works as expected. Change-Id: I77cffdd038df4eab774f0d162f49273650638ad6 Signed-off-by: William A. Kennington III <wak@google.com>
* example/heartbeat: RefactorWilliam A. Kennington III2018-09-261-8/+13
| | | | | | | | | | | This cleans up the clock and time source declarations by defining the ClockId and Timer types up front. Tested: Built the example and it runs as expected. Change-Id: I67326f5804f8eea54624150f6aa5d735bbde05fd Signed-off-by: William A. Kennington III <wak@google.com>
* source/base: Improve some method typesWilliam A. Kennington III2018-07-231-1/+1
|
* example/follow: ImplementWilliam A. Kennington III2018-07-231-3/+107
|
* example/heartbeat: Show a time exampleWilliam A. Kennington III2018-07-192-0/+39
|
* configure: Make examples optionalWilliam A. Kennington III2018-07-171-0/+4
|
* makefile: Clean up compiler flagsWilliam A. Kennington III2018-07-171-7/+1
|
* Initial CommitWilliam A. Kennington III2018-07-172-0/+25
OpenPOWER on IntegriCloud