Commit Graph

20 Commits

Author SHA1 Message Date
hathach
cf91660cee rename hw/bsp/board.h to board_api.h 2023-08-03 15:44:05 +07:00
hathach
bdfcd50b1b Merge branch 'master' into portability 2023-03-17 23:53:38 +07:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
3422e05684 change length in tud_hid_report_complete_cb() from uint8 to uint16 2023-02-04 11:43:23 +07:00
Ben Avison
65ba15c37d Remove unreachable code
IAR generates warning Pe111 'statement is unreachable'. In a couple of
cases, replace return statements with TU_ATTR_FALLTHROUGH; because some
compilers apparently can't figure out that the return statements are
unreachable but do whinge about an imagined fall-through without them!
2022-09-13 18:00:50 +01:00
hathach
b495d6f8ec temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release 2022-07-17 22:56:07 +07:00
hathach
898b52be45 update rp2040 warnings
- remove "-Wno-stringop-overflow -Wno-array-bounds"
- skip -Wconversion for gcc 9 and prior
- suppress_tinyusb_warnings only when building with gcc 9 and below
2022-06-28 16:27:44 +07:00
hathach
83602ea123 Merge branch 'master' into rp2040_warning 2022-06-28 13:34:47 +07:00
graham sanderson
4057c2d8d9 rework suppress_tinyusb_warnings
* gcc 9.2.1 has some spurious -Wconversion warnings
* cmake 3.18 and above require set_target_properties to be added from the target directory (so added it to all examples)
* fixed a few warnings in a couple of examples
2022-06-27 22:43:41 +01:00
hathach
556b5d5044 change report len in hid API from uint8_t to uint16_t
since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
affected APIs are:
- tud_hid_n_report() / tud_hid_report()
- tud_hid_report_complete_cb()
2022-06-27 12:22:36 +07:00
hathach
9794a2b865 more example update 2022-06-06 22:41:04 +07:00
hathach
5f6418ccd7 add hid_boot_interface example 2021-08-17 13:21:24 +07:00
hathach
6de023d54b update hid_composite freertos with capslock as well 2021-07-01 22:54:57 +07:00
hathach
ca98996e1f better support for hid device set/get protocol
add caplock detection for hid_composite
2021-07-01 22:46:39 +07:00
hathach
a070626729 add itf argument to hid API to support multiple instances
following API signature is changed:
- tud_hid_descriptor_report_cb()
- tud_hid_get_report_cb()
- tud_hid_set_report_cb()
- tud_hid_boot_mode_cb()
- tud_hid_set_idle_cb()
2021-02-24 14:27:20 +07:00
hathach
d2b8e591f6 tud_hid_report_complete_cb() API
update hid composite to make use of tud_hid_report_complete_cb() for
sending reports when possible.
2021-02-09 15:57:29 +07:00
hathach
72bcc0685c add tud_hid_n_gamepad_report() helper for gamepad report
- Add gamepad to hid_composite example. Though it needs a bit of extra
work but it will come later as separated PR.
2021-02-08 19:08:16 +07:00
hathach
3d95835f22 add consumer control to hid_composite examples
both no OS and freeRTOS
2021-02-01 14:47:39 +07:00
hathach
7394113748 example clean up 2020-04-07 16:05:04 +07:00
hathach
cbf9f6e0dc added new example hid_composite 2019-09-11 13:00:15 +07:00