55523d4083
ectool 0.3.6
2021-04-13 11:04:51 -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
61428bd198
ectool 0.3.5
2021-03-16 10:33:46 -06:00
0017450cbb
Add LED_SAVE command
2021-03-16 10:33:46 -06:00
91d128f0a0
ectool 0.3.4
2021-03-04 13:52:25 -07:00
aab45bfcc1
Add layer parameter for LED_GET_MODE and LED_SET_MODE commands
2021-03-04 13:52:25 -07:00
301eef6f21
tool: Fix and CI test with redox_hwio
2021-03-04 13:51:19 -07:00
59df32814b
tool: Don't depend on clap
when without default features
2021-03-04 13:51:19 -07:00
325762d4d8
tool: Fix building without std
feature
2021-03-04 13:51:19 -07:00
8825b906bd
ectool 0.3.3
2021-03-01 11:51:08 -07:00
f30a9d84f7
Fix unused variable warning
2021-03-01 11:50:31 -07:00
2ef4cd7bbd
Add matrix command
2021-03-01 11:50:31 -07:00
4cd4df03e8
ectool 0.3.2
2021-02-26 12:18:02 -07:00
b11bc64bba
tool: API and CLI for LED matrix mode
2021-02-26 12:18:02 -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
9ef191edff
tool: Update copyright year
2021-02-22 13:58:53 -07:00
44a0b887c4
tool: Replace ICU license text with MIT license
...
Cargo.toml declares MIT license, but the included LICENSE is the ICU
variant. Replace the text, as formatted on choosealicense [1].
[1]: https://choosealicense.com/licenses/mit/
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2021-02-22 13:58:53 -07:00
71f0f1e181
ectool 0.3.0
...
Crates depending on both ectool and hidapi will have to disable hidapi's
default features (annoyingly) or it will fail to compile saying only one
backend should be enabled.
2021-02-22 08:08:49 -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
171257916c
tool: CLI for color/brightness
2021-02-22 08:08:49 -07:00
49b79f665b
tool: Add --access
argument to work with sim or hid
2021-02-22 08:08:49 -07:00
7c5ba4e62c
tool: Use clap
for argument parsing
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
f4458aebca
tool: Use hidraw backend of hidapi
...
The default libusb backend just returns the string "hid_error is not
implemented yet" for all errors, while the hidraw backend at least gives
something correct if vague.
I'm not aware of any disadvantage other that not being (properly)
supported with really ancient kernels. It seems to work fine.
2021-02-22 08:08:49 -07:00
12a9ac8d84
ectool 0.2.3
2021-01-15 08:34:31 -07:00
304e7534c9
Add led value and color commands
2021-01-15 08:34:31 -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
b2aa7ba975
ectool 0.2.2: Use buffer to improve SPI performance
2020-10-06 09:31:34 -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
8da8342e40
ectool version 2.0
2020-10-01 20:36:21 -06:00
eff4caa752
Refactor SMFI interface and ectool
2020-10-01 19:35:34 -07:00
99ef48f9c4
Address PR feedback
2020-09-29 19:42:05 -06:00
ad5cd931e3
Move StdTimeout to ectool under std feature
2020-09-29 19:42:05 -06:00
de26cdfa74
Commands for reading and setting keyboard map
2020-09-29 19:42:05 -06:00
a8b38d6b37
tool: 0.1.3 - add backup ROM flashing
2020-04-06 16:39:40 -06:00
20d3808aed
Allow a config.mk to be created that contains BOARD, KEYMAP, etc.
2020-04-04 13:01:13 -06:00
82b7079f73
Add tool for collecting power/temp information
2020-04-04 08:23:52 -06:00
62a909ee81
Improve fan curve
...
- Implement fan cooldown and heatup periods
- Add fan get/set commands
- Fix compilation with logging level lower than debug
2020-04-04 07:30:05 -06:00
6bfe5bb99a
Update Cargo.lock
2020-03-31 12:08:18 -06:00
b0f6d7314a
ectool 0.1.2 - support building on rust stable
2020-03-31 12:07:32 -06:00
25a60568d0
Add print command
2020-03-14 21:13:07 -06:00
e2c6fd7b82
ectool 0.1.1
2020-02-27 15:07:16 -07:00
ff01da5f12
Write and erase at the same time to improve speed
2020-02-27 15:05:28 -07:00
d1468da590
Use 1024 byte erase
2020-02-27 14:48:24 -07:00
33cc2a2a76
Better output when flashing EC
2020-02-27 14:46:32 -07:00
6ac21ace9c
Set spi target to main
2020-02-27 13:30:33 -07:00