diff options
| author | MAY <[email protected]> | 2026-03-25 22:00:44 +0100 |
|---|---|---|
| committer | MAY <[email protected]> | 2026-03-25 22:00:44 +0100 |
| commit | 0b95590b1854a9f38be39a96876067ba3e47db8f (patch) | |
| tree | 25f88ccdd3cec22c624d87f397d1837429f600da /docs/USBX_Host_Stack_UVC_User_Guide.docx | |
| parent | 6dc0cf233d5b7ee6e1a7434581964975f8d8d37b (diff) | |
Add default value protection for line coding parameters in serial Host classes
Add preprocessor guards to allow customization of default line coding parameters.
Summary of Changes:
- Wrapped default line coding constants (RATE, STOP_BIT, PARITY, DATA_BIT)
with #ifndef guards in CDC ACM, GSER, and Prolific host class headers
- This allows users to define custom default values before including these headers in (ux_user.h)
- Updated Prolific activation code to use DEFAULT constants instead of hardcoded values
for consistency and better maintainability
Files Modified:
- common/usbx_host_classes/inc/ux_host_class_cdc_acm.h
- common/usbx_host_classes/inc/ux_host_class_gser.h
- common/usbx_host_classes/inc/ux_host_class_prolific.h
- common/usbx_host_classes/src/ux_host_class_prolific_activate.c
Diffstat (limited to 'docs/USBX_Host_Stack_UVC_User_Guide.docx')
0 files changed, 0 insertions, 0 deletions
