Commit Graph

42 Commits

Author SHA1 Message Date
doryan ae466a8aad fix: remove redundant length check 2025-05-27 21:48:37 +04:00
doryan 21fcb661f1 fix: use .skip() instead slicing [1..] 2025-05-27 21:47:53 +04:00
doryan 29e5edde8a feat(check): add check for endpoint table length 2025-05-26 10:24:51 +04:00
doryan 137fcc78e5 refactor: reduce Iterator methods usage 2025-05-26 10:24:19 +04:00
doryan 5ac1a07c6b Merge pull request 'Merge first (maybe) stable version usb-avr for atmega32u4/atmega16u4' (#1) from test into main
Reviewed-on: #1
2025-05-18 22:52:52 +03:00
doryan c510d908d3 refactor: move constants + remove code duplicate 2025-05-18 23:51:41 +04:00
doryan cfa76a6672 fix(int): USBINT interrupt 2025-05-18 23:20:14 +04:00
doryan dba9637614 revert a269df21fe
revert fix(int): fix bytes for clearing interrupt flags for usbd_serial
2025-05-18 22:15:59 +03:00
doryan dd28dfe61e test 2025-05-18 23:05:30 +04:00
doryan a269df21fe fix(int): fix bytes for clearing interrupt flags for usbd_serial 2025-05-18 23:00:00 +04:00
doryan 93ade5bda0 fix: add clearing interrupts 2025-05-15 10:23:43 +04:00
doryan 64a6532c94 fix(f_reset): using detach bit in udcon register instead usbcon 2025-05-15 10:03:31 +04:00
doryan 6322868796 refactor: remove unwrap() usage, redundant free(||) usage and etc 2025-05-14 21:01:58 +04:00
doryan f7c4b48b85 remove free-interrupt context for endpoint allocator 2025-05-05 23:09:54 +04:00
doryan 4a90b9a6c8 feat(usb_device): add getters 2025-04-28 20:23:02 +04:00
doryan ce10b959e4 Update src/types/usb_device.rs 2025-04-28 18:51:49 +03:00
doryan e1711038c5 revert f399278d2c
revert feat: rename method
2025-04-28 18:51:16 +03:00
doryan 29b3bff247 revert 995bfd0169
revert feat: separate constructor for UsbDevice and UsbBusAllocator
2025-04-28 18:50:45 +03:00
doryan 79d01f8571 revert c4686aafc4
revert feat(api): add plug_in_detection
2025-04-28 18:49:26 +03:00
doryan fb6f180ce2 feat: rename crate 2025-04-25 16:25:03 +04:00
doryan 995bfd0169 feat: separate constructor for UsbDevice and UsbBusAllocator 2025-04-25 15:40:55 +04:00
doryan f399278d2c feat: rename method 2025-04-25 15:28:29 +04:00
doryan c4686aafc4 feat(api): add plug_in_detection 2025-04-25 14:35:30 +04:00
doryan ba319eecff refactor: move function down + set #[inline(always)] for small functions 2025-04-25 14:35:11 +04:00
doryan a1e180b451 feat: comment build dep 2025-04-25 12:23:52 +04:00
doryan 09ae1b383c feat: change profile toolchain 2025-04-25 12:23:39 +04:00
doryan 8416bd0fa4 cosmetic changes 2025-02-13 00:29:13 +04:00
doryan 30850a473d fix: add clearing interrupts 2025-02-13 00:29:02 +04:00
doryan 9b4f758045 commited for clippy fix 2025-02-11 19:27:23 +04:00
doryan 90708794db feat(toolchain): add toolchain file 2024-12-30 23:15:11 +04:00
doryan ccb23c8c56 refactor!: rewrite almost full library
Now usbd implementation works fine (tested on atmega32u4)
2024-12-30 21:17:23 +04:00
doryan 16812fe119 fix 2024-11-14 02:14:03 +04:00
doryan 7436a78885 feat(types): make all types and his fields public for crate 2024-11-14 01:55:34 +04:00
doryan 652ba78cdf feat(UsbBus): move UsbBus implementation to lib.rs file and implement set_stalled, suspend and etc 2024-11-14 01:54:33 +04:00
doryan e9d661e9e3 feat(UsbBus): implement write and read methods and borrow poll method implementation from atmega_usbd 2024-11-14 01:52:41 +04:00
doryan 4ca8c4e8cf feat(code): format code 2024-11-09 16:48:28 +04:00
doryan ddd6ee6ad2 fix(field): change size field type from u16 to u8 2024-11-09 16:48:05 +04:00
doryan 64424febc6 feat(UsbBus): implement resume and set_device_address methods 2024-11-09 16:47:05 +04:00
doryan ecb5e513d1 feat(alloc_ep): refactor + add comments 2024-11-09 16:46:12 +04:00
doryan 8e3517eafe feat(endpoint): add configure endpoint method 2024-11-09 16:45:39 +04:00
doryan f44aa6459a feat(endpoint): add select endpoint method 2024-11-09 16:44:38 +04:00
doryan 6eb6cef6ee feat: first commit 2024-11-09 01:29:29 +04:00