Zixun LI
4832762590
typo fix
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-11 17:48:10 +02:00
HiFiPhile
69f6b57772
Code reformat
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-06-08 14:31:11 +02:00
Moritz Scholjegerdes
95be35b587
add support for usbtmc vendor-spicific command messages
2025-05-06 16:06:10 +02:00
Ha Thach
dbc2c8d972
Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order ( #2889 )
...
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-11-27 18:28:12 +07:00
hathach
8a5c118a66
TUD_EPBUF_TYPE_DEF usbtmc_device.c and vendor_device.c
2024-11-22 16:22:10 +07:00
HiFiPhile
1c04d5992a
Merge pull request #2494 from tommie/usbtmcnotif
...
Add notification support for device class USBTMC
2024-04-28 12:36:41 +02:00
HiFiPhile
bd033a2d53
Fix CI.
2024-04-27 17:24:19 +02:00
HiFiPhile
fdb431b5c7
Buffer int msg to ensure alignment and placement correctness.
2024-04-27 17:12:00 +02:00
HiFiPhile
98e85a296d
bulk_in: copy buffer to ensure alignment correctness.
2024-04-27 17:09:05 +02:00
hathach
c097c85dcf
fix print lu format warnings with clang
2024-04-22 16:17:22 +07:00
hathach
366564e952
fix missing if mutex required
2024-04-08 22:13:05 +07:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
Tommie Gannert
9e674fa109
[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.
2024-03-15 15:02:13 +01:00
Tommie Gannert
5ce7b14711
add notification support for device class USBTMC.
...
The ep_int_in is already used for responding to USB488
READ_STATUS_BYTE requests, but that EP is defined for all of USBTMC.
This extends the functionality to let callers send notifications and
receive ACKs.
2024-02-26 11:43:45 +01:00
hathach
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach
9f54cc1eb7
more clean up
2023-03-18 11:43:47 +07:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
Mengsk
8c591e2c45
More warning fixes
2023-01-04 12:40:01 +01:00
Mengsk
82f105e32b
Fix IAR warning: Warning[Pe381]: extra ";" ignored
2023-01-02 21:18:10 +01:00
hathach
96d2be905b
fix build with usbtmc
2022-12-15 18:47:54 +07:00
scoudreau
007ed1f0fe
Added missing typecast to pass build checks
2022-12-08 14:50:34 +01:00
Sebastien COUDREAU
15ab35d9b8
usbtmc: correct packet size bug
...
Code was only reading the first 64 bytes of a 512 bytes packet.
2022-12-08 11:35:32 +01:00
hathach
43b255f413
more typos
2022-12-04 19:44:01 +07:00
NConrad
54250d7dd5
USBTMC: explicit type conversions fix
2022-07-09 17:50:17 -04:00
NConrad
c675debfb2
USBTMC: Handle busy interrupt in.
2022-06-26 14:34:34 -04:00
NConrad
239b5d5279
USBTMC: Manually stall and unstall EP when clear(ENDPOINT_HALT) is received.
2022-06-24 23:06:32 -04:00
NConrad
e9c29e6a2d
Update USBTMC driver to support dynamic packet sizes (based on descriptor).
2022-06-21 21:27:52 -04:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
Scott Shawcroft
47218eeb67
No exceptions on broadcom. Add parens to if
2022-01-05 16:07:17 -08:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +07:00
hathach
6f5b197a98
indent
2021-10-24 08:44:58 +07:00
hathach
0b249618b0
fix -Wcast-qual
2021-10-15 23:54:31 +07:00
hathach
9736e54734
include clean up
2021-05-27 17:40:39 +07:00
Jeremiah McCarthy
ec08dcf61a
Implement requested changes for PR724
2021-03-17 09:25:01 -04:00
Michael Bruno
62d4652f86
Update usbtmc_device.c
...
Fix buffer alignment in TMC device class
2021-03-16 10:48:42 -04:00
hathach
7df979673d
migrate usbtmc device to new control xfer cb
2020-11-20 15:38:56 +07:00
hathach
01b9b77d3b
allow application driver to overwrite built-in one
...
- position application driver before built-in
- remove dcd.h from public include.
2020-08-07 14:47:32 +07:00
hathach
bec5b5f9da
update usbtmc open()
2020-05-28 12:13:48 +07:00
hathach
017c95037f
add usbd edpt open
...
- RTT mode is blocking to prevent log lost
- Improve logging message
2020-04-26 14:51:44 +07:00
hathach
c1c9ca5629
test with tmc
2020-04-15 10:37:31 +07:00
Nathan Conrad
55fd9fe392
Typo of usbtmc.
2020-04-02 23:16:28 -04:00
Nathan Conrad
c98acd3873
Use control transfer function to send control data (in usbtmc)
2019-11-04 08:54:18 -05:00
Nathan Conrad
6841b236e8
Remove _app from callback function names.
2019-09-25 12:47:05 -04:00
Nathan Conrad
3a87dd65d7
Change getting the capabilities structure to a callback instead of an extern struct.
2019-09-25 12:46:35 -04:00
Nathan Conrad
2d4352bfe9
Rename USBTMC functions.
2019-09-25 12:46:25 -04:00
Nathan Conrad
412a279073
I never understood why I need to write void as empty function arguments.
2019-09-24 13:54:45 -04:00
Nathan Conrad
624f4bf4ce
Remove rhport from app code. If anything, it should be the interface_id. Assume a single interface, for now.
2019-09-24 13:42:29 -04:00