Commit Graph

37 Commits

Author SHA1 Message Date
kaczmarczyck
3813cacea7 moves storage syscalls to libtock-drivers (#633) 2023-06-12 23:50:10 +02:00
kaczmarczyck
f25cdd6acc Tock V2 port - rebased and updated (#620)
* Changes from #580

* fixes USB cancel panic

* style fixes

* Update src/env/tock/storage.rs

Co-authored-by: Zach Halvorsen <zhalvorsen@google.com>

---------

Co-authored-by: Zach Halvorsen <zhalvorsen@google.com>
2023-05-05 09:55:16 +02:00
kaczmarczyck
d8512b4417 Moves Endpoint from libtock to API (#598)
The main benefit is that we removed all mentions of "tock" from all
source code that is not `main.rs` or inside `env/`.

This change makes libtock-drivers oblivious to how many endpoints are
supported. The endpoint is now checked a bit later in the stack.
2023-03-01 14:58:40 +01:00
kaczmarczyck
73c60d8740 Clock trait (#596)
* adds generic Env parameters

* adds Clock type to Env

* use new Clock

* TockTimer improvements

* new Clock interface

* addressed comments

* renames constants to milliseconds, other style fixes

* removes all cargo fmt artifacts
2023-02-28 17:35:42 +01:00
kaczmarczyck
6610a29a67 Fixed proc-macro2 version (#550)
* fixes proc-macro2 in dependencies

* adds missing locked versions, and a verbose print for cargo check

* commits Cargo.lock files

* removes unnecessary Cargo.lock entries

* adds missing Cargo.lock
2022-09-27 10:12:45 +02:00
Liam Murphy
2544afbfee Connect Vendor HID interface between USB driver and CTAP app (#490)
* Connect Vendor HID endpoint to Ctap app

* tweaks from review

* formatting nit

* revert tock submodule revision

* fix formatting of deploy.py for yapf error

* Changes based on review

* Track state for each USB endpoint separately

* Rename patch file to ensure correct patching order

* Adjust patch from changes #494 and #500

* rustfmt

* rustfmt

* Deprecate patch 11 in favor of this full working code
2022-06-20 07:31:31 +02:00
kaczmarczyck
1d53f3c921 Adapts libtock drivers for vendor HID (#500)
* adapts libtock drivers for vendor HID

* status with timeout
2022-06-16 17:56:44 +02:00
kaczmarczyck
b33ffb7979 Vendor HID for libtock-drivers (#452)
* multi HID interface for libtock-drivers

* proper u8 print
2022-04-05 05:52:33 +02:00
Julien Cretin
f862d4cc18 Address all occurrences of statement expression attributes 2022-03-28 16:29:22 +02:00
kaczmarczyck
7e7d5e38a1 enforces Module imports granularity (#445) 2022-03-14 20:44:48 +01:00
Julien Cretin
ca2ea2007e Add track_caller for flex_unwrap in libtock-drivers 2022-01-07 17:00:07 +01:00
Jean-Michel Picod
8595ed5e28 Addressing review comments. 2020-12-16 18:22:15 +01:00
Jean-Michel Picod
218188ad49 Add CRP support in libtock-rs 2020-12-16 18:22:15 +01:00
Mirna
9e89803cb8 Removed Select syscalls, handled in the driver 2020-10-29 22:51:51 +02:00
Mirna
3d71da0bf5 Unify drop pattern 2020-10-28 20:28:53 +02:00
Mirna
ce446f571c Resolve Comments 2020-10-28 19:11:09 +02:00
Mirna
31449fcc0d Added setup function for driver existence checking 2020-10-27 10:06:11 +02:00
Mirna
64c66b91f5 Fixed NFC feature flag 2020-10-27 10:05:06 +02:00
Mirna
e37f63396c Revert #cfg change 2020-10-26 14:01:27 +02:00
Mirna
a53569007d Hide NFC behind feature flag 2020-10-26 12:56:53 +02:00
Mirna
18c6406031 Use return type TockResult<T> 2020-10-22 15:10:36 +02:00
Mirna
59af769c69 Remove unnecessary done.get() 2020-10-22 12:10:43 +02:00
Mirna
8cb85563da Updated Functions Return Types 2020-10-21 19:30:58 +02:00
Mirna
7e0a48ae1c Resolved Review Comments 2020-10-21 10:39:17 +02:00
Mirna
f09a9b4fae Update libtock-drivers/ NFC driver 2020-10-16 08:06:42 +02:00
Mirna
00ab3c8877 Fixes for some unsuccessful checks 2020-10-16 08:06:42 +02:00
Mirna
929aaf3ba2 Update in libtock-drivers/ and nfct_test.rs application 2020-10-16 08:06:42 +02:00
Mirna
0f6eeff486 Add NFC driver to third_party/libtock-drivers/ 2020-10-16 08:06:42 +02:00
Guillaume Endignoux
63432000db Allow clippy::new_without_default. 2020-09-29 11:19:41 +02:00
Guillaume Endignoux
5511811703 Fix most Clippy warnings. 2020-09-29 11:05:24 +02:00
Guillaume Endignoux
a3b9724165 Add console_test example to stress-test Tock's console driver. 2020-09-22 16:33:52 +02:00
Guillaume Endignoux
ff0eefcae5 Fix typo in Cargo.toml. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
529db7b4ef Update usb_ctap_hid.rs to the new API. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
6cc4f2cfb6 Move usb_ctap_hid.rs to third_party/libtock-drivers. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
467121c962 Update third_party/libtock-drivers to support OpenSK. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
5f1fcaedf5 git mv leds.rs led.rs 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
251e007d59 Import https://github.com/tock/libtock-rs at commit 828c19d into third_party/libtock-drivers/. 2020-08-07 15:09:07 +02:00