Commit Graph

14 Commits

Author SHA1 Message Date
43e5cf4ba3 Fix or silence clippy warnings on nightly
Fix:
- dead_code
- clippy::if_then_panic
- clippy::manual_memcpy
- clippy::needless_borrow

Silence:
- clippy::missing_safety_doc
- clippy::needless_range_loop
- clippy::single_match

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-26 11:35:48 -06:00
84d5c6b79d tool: Make Access require Send and 'static
This allows the Configurator to send a `Ec<Box<dyn Access>>` through a
channel to a background thread. This could be done differently, but
presumably there's no reason to have an `Access` implementation this
doesn't apply to.
2021-04-13 11:04:51 -06:00
301eef6f21 tool: Fix and CI test with redox_hwio 2021-03-04 13:51:19 -07:00
325762d4d8 tool: Fix building without std feature 2021-03-04 13:51:19 -07:00
73a5d8b8a1 ectool 0.3.1: Implement read_debug for Box<dyn Access> 2021-02-23 09:45:55 -07:00
3e154d7f00 Add missing SPDX identifiers 2021-02-22 14:02:18 -07:00
e30779ab8d tool: Accesor method for HidDevice 2021-02-22 08:08:49 -07:00
2768925ec6 tool: Support downcasting generic Ec
Removes the `impl Access for &mut dyn Access` I added earlier. But that
hasn't proven too useful.
2021-02-22 08:08:49 -07:00
504284bf72 tool: Move read_debug to trait so generic code can use it
Returns error for backends that don't support it.
2021-02-22 08:08:49 -07:00
0c1584385c tool: Support for owned and unowned generic Ec 2021-02-22 08:08:49 -07:00
42f1b4863f Add AccessLpcSim for communicating with ecsim
Probably the duplicated logic in `access/lpc/*` should be factored out
in some way, but it's a bit awkward to do so without defining a trait
that would be part of the public API...
2020-12-08 13:46:35 -07:00
802bf417cc tool: Use From<T> for slightly neater error handling 2020-12-08 13:46:35 -07:00
726a0e0837 ectool version 0.2.1:
- Add hidapi feature
- Add redox_hwio feature
- Add feature documentation
2020-10-02 09:05:25 -07:00
eff4caa752 Refactor SMFI interface and ectool 2020-10-01 19:35:34 -07:00