File tree Expand file tree Collapse file tree 12 files changed +27
-20
lines changed Expand file tree Collapse file tree 12 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 1
- //! The [`Control` trait](trait. Control.html ) and friends.
1
+ //! The [`Control` trait](crate::control:: Control) and friends.
2
2
//!
3
- //! Unlike the [`Peripherals` trait](../ peripherals/trait. Peripherals.html ) and
4
- //! the [`Memory` trait](../ memory/trait. Memory.html ), there is no shim
5
- //! implementation of Control; instead the 'shim' is an instruction level
6
- //! simulator that lives in the [interp module](../ interp).
3
+ //! Unlike the [`Peripherals` trait](crate:: peripherals:: Peripherals) and the
4
+ //! [`Memory` trait](crate:: memory:: Memory), there is no shim implementation of
5
+ //! Control; instead the 'shim' is an instruction level simulator that lives in
6
+ //! the [interp module](crate:: interp).
7
7
8
8
use super :: error:: Error ;
9
9
use super :: { Addr , Word } ;
Original file line number Diff line number Diff line change 1
1
#![ feature( stmt_expr_attributes) ]
2
2
#![ feature( trace_macros) ]
3
+
3
4
// TODO: forbid
4
5
#![ warn(
5
6
bad_style,
27
28
// TODO: deny
28
29
#![ warn(
29
30
missing_debug_implementations,
31
+ intra_doc_link_resolution_failure,
30
32
missing_docs,
31
33
unsafe_code,
32
34
trivial_casts,
36
38
unused_qualifications,
37
39
unused_results
38
40
) ]
41
+
39
42
// Mark the crate as no_std if the `no_std` feature is enabled.
40
43
#![ cfg_attr( feature = "no_std" , no_std) ]
41
44
42
45
#[ cfg( feature = "shims" ) ]
43
- mod shims;
46
+ pub mod shims;
44
47
45
48
// Can't have `no_std` and `shims` enabled!
46
49
#[ cfg( all( feature = "no_std" , feature = "shims" ) ) ]
Original file line number Diff line number Diff line change 1
- //! [`Adc` trait](trait. Adc.html ) and associated types.
1
+ //! [`Adc` trait](Adc) and associated types.
2
2
3
3
use crate :: peripheral_trait;
4
4
Original file line number Diff line number Diff line change 1
- //! [`Clock` trait](trait. Clock.html ).
1
+ //! [`Clock` trait](Clock).
2
2
3
3
use crate :: Word ;
4
4
Original file line number Diff line number Diff line change 1
- //! [`Gpio` trait](trait. Gpio.html ) and friends.
1
+ //! [`Gpio` trait](Gpio) and friends.
2
2
3
3
use core:: convert:: TryFrom ;
4
4
Original file line number Diff line number Diff line change 1
- //! [`Input` device trait](trait. Input.html ) and related things.
1
+ //! [`Input` device trait](Input) and related things.
2
2
3
3
pub trait Input { }
Original file line number Diff line number Diff line change 1
- //! Peripherals! The [`Peripherals` supertrait](trait. Peripherals.html ) and the
2
- //! rest of the peripheral and device traits.
1
+ //! Peripherals! The [`Peripherals` supertrait](Peripherals) and the rest of the
2
+ //! peripheral and device traits.
3
3
4
4
pub mod adc;
5
5
pub mod clock;
Original file line number Diff line number Diff line change 1
- //! [`Output` device trait](trait. Output.html ) and friends.
1
+ //! [`Output` device trait](Output) and friends.
2
2
3
3
pub trait Output { }
Original file line number Diff line number Diff line change 1
- //! [`Pwm` trait](trait. Pwm.html ) and helpers.
1
+ //! [`Pwm` trait](Pwm) and helpers.
2
2
3
3
// TODO: Switch to enum for pins
4
4
// TODO: Add Errors
Original file line number Diff line number Diff line change 1
- //! [`Timers` trait](trait. Timers.html ) and related types.
1
+ //! [`Timers` trait](Timers) and related types.
2
2
3
3
use crate :: Word ;
4
4
You canβt perform that action at this time.
0 commit comments