mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
commit
b443851980
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: codespell
|
||||||
|
name: codespell
|
||||||
|
entry: codespell
|
||||||
|
types_or: [c, header]
|
||||||
|
language: system
|
||||||
|
|
||||||
|
- id: unit-test
|
||||||
|
name: unit-test
|
||||||
|
files: ^(src/|test/unit-test/)
|
||||||
|
entry: sh -c "cd test/unit-test && ceedling test:all"
|
||||||
|
pass_filenames: false
|
||||||
|
types_or: [c, header]
|
||||||
|
language: system
|
@ -385,6 +385,11 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
|
|||||||
/* Controller API
|
/* Controller API
|
||||||
*------------------------------------------------------------------*/
|
*------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
// older SDK
|
||||||
|
#ifndef PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY
|
||||||
|
#define PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY 0xff
|
||||||
|
#endif
|
||||||
|
|
||||||
void dcd_init (uint8_t rhport)
|
void dcd_init (uint8_t rhport)
|
||||||
{
|
{
|
||||||
assert(rhport == 0);
|
assert(rhport == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user