[Core] Refactor ChibiOS USB endpoints to be fully async (#21656)
This commit is contained in:
parent
b43f6cb7ef
commit
0e02b0c41e
12 changed files with 1311 additions and 1134 deletions
|
@ -29,7 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// clang-format off
|
||||
|
||||
/* HID report IDs */
|
||||
enum hid_report_ids {
|
||||
enum hid_report_ids {
|
||||
REPORT_ID_ALL = 0,
|
||||
REPORT_ID_KEYBOARD = 1,
|
||||
REPORT_ID_MOUSE,
|
||||
REPORT_ID_SYSTEM,
|
||||
|
@ -37,9 +38,12 @@ enum hid_report_ids {
|
|||
REPORT_ID_PROGRAMMABLE_BUTTON,
|
||||
REPORT_ID_NKRO,
|
||||
REPORT_ID_JOYSTICK,
|
||||
REPORT_ID_DIGITIZER
|
||||
REPORT_ID_DIGITIZER,
|
||||
REPORT_ID_COUNT = REPORT_ID_DIGITIZER
|
||||
};
|
||||
|
||||
#define IS_VALID_REPORT_ID(id) ((id) >= REPORT_ID_ALL && (id) <= REPORT_ID_COUNT)
|
||||
|
||||
/* Mouse buttons */
|
||||
#define MOUSE_BTN_MASK(n) (1 << (n))
|
||||
enum mouse_buttons {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue