60 Commits

Author SHA1 Message Date
kaczmarczyck
c160b034ef Latest compiler and package versions (#663)
* Move to latest compiler and package versions

We also add cargo audit to the desktop tests.

* Install cargo audit differently in workflow

* Removes leftover nightly references

* Removes install check from deploy.py

The toolchain should be correctly setup after setup.sh.

* Removes rust component install from workflow

Now that the nightly version is fixed, this should work ootb.

* Moves cargo audit install to setup.sh

* Updates cargo bloat workflow to default features
2023-11-09 15:00:37 +01:00
Zach Halvorsen
8868752e37 Remove duplicated alarm syscall. (#636)
The alarm syscall is implemented in libtock-rs, but was duplicated here.
This removes the duplicated code and changes the references to point to
libtock-rs directly.

Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
2023-07-11 17:42:50 +02:00
Zach Halvorsen
a274a512f7 Add ability to get more storage information. (#637)
This adds parameters to the storage location syscalls to specify which
storage location to get the address and size for.
2023-06-29 19:46:36 +02:00
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
0db393bd1e adds style fix and updates Cargo.lock (#576) 2023-01-04 15:19:26 +01:00
kaczmarczyck
6b5f6e53eb upgrades linked_list_allocator (#574) 2022-12-12 16:42:49 +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
c1f2551d0d Bump Tock kernel version (#374)
* Bump Tock kernel version

* Update boards to new kernel

* Update patches to new kernel

* Update PR template

* Bump libtock-rs

* Use new layout from libtock-rs

* Fix clippy warnings due to updated toolchain

* Fix new toolchain file format

* Bump elf2tab to v0.7.0

* Fix worklow and setup.sh script to use the TOML rust-toolchain file

* New libtock-rs style of declaring the stack.

* Fix padding in layout file.

The layout from libtock-rs generates invalid flash padding.
The value is 32-bit and therefore setting padding to 0xff yields
0xff000000 instead of 0xffffffff that we want.

* adds tock patch for app break hard fault

* sets in deploy, removed patch 04-mpu-fix

* fixed the if deploy

* fixes indentation

* updates board names in install.md

* fix docs and deploy style

Co-authored-by: Fabian Kaczmarczyck <kaczmarczyck@google.com>
Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
2021-09-10 08:32:34 +02: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
Julien Cretin
7a641d6391 Use the new const_mut_refs default feature of linked_list_allocator
This is necessary for Heap::empty() to be const.
2020-12-10 16:20:26 +01:00
Julien Cretin
d4b20a5acc Fix linked_list_allocator version to fix build
They released version 0.8.7 today which breaks our assumption that Heap::empty
is callable in const context.
2020-12-10 16:15:58 +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
Jean-Michel Picod
beb9f90099 Merge branch 'master' into master 2020-09-22 17:15:04 +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
ff73936a4d Fix imports in ctap, embedded_flash and lang-items. 2020-09-22 13:14:33 +02:00
Jean-Michel Picod
cc495b8c85 Bump kernel version 2020-09-16 10:37:18 +02:00
Guillaume Endignoux
ff0eefcae5 Fix typo in Cargo.toml. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
6df347acf3 Update libtock-rs to the current master. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
76c0840354 Update third_party/lang-items to support OpenSK. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
fbc7044328 git mv alloc.rs allocator.rs 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
ee7ffa658c Import https://github.com/tock/libtock-rs/core at commit ab2c945 into third_party/lang-items/. 2020-08-07 15:09:07 +02:00
Guillaume Endignoux
89e397e718 Import https://github.com/tock/libtock-rs/core at commit 828c19d into third_party/lang-items/. 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