Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruradovici committed Jan 19, 2022
1 parent 3feb03a commit d738cf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions unittest/src/fake/leds/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//! Fake implementation of the LowLevelDebug API, documented here:
//! https://github.com/tock/tock/blob/master/doc/syscalls/00008_low_level_debug.md
//! Fake implementation of the LEDs API, documented here:
//! https://github.com/tock/tock/blob/master/doc/syscalls/00002_leds.md
//!
//! Like the real API, `LowLevelDebug` prints each message it is commanded to
//! print. It also keeps a log of the messages as `Message` instances, which can
//! be retrieved via `take_messages` for use in unit tests.
//! Like the real API, `Leds` controls a set of fake LEDs. It provides
//! a function `get_led` used to retrieve the state of an LED.

use core::cell::Cell;
use libtock_platform::{CommandReturn, ErrorCode};
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/leds/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn command() {
assert_eq!(leds.get_led(0), Some(false));
}

// Integration test that verifies LowLevelDebug works with fake::Kernel and
// Integration test that verifies Leds works with fake::Kernel and
// libtock_platform::Syscalls.
#[test]
fn kernel_integration() {
Expand Down

0 comments on commit d738cf0

Please sign in to comment.