diff options
| author | Ha Thach <[email protected]> | 2023-03-15 23:24:44 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-15 23:24:44 +0700 |
| commit | b443851980a3ef82ed234faa9af3a1639fa6a0fe (patch) | |
| tree | 8b16e26d9885f5e8b1ada7b4376b1de281f22bd5 | |
| parent | ea8ecea59aa60a1028cce16b0f15bb33918b11af (diff) | |
| parent | ffa56a1beb724397e434e5e74e2a7b1d4583acd8 (diff) | |
Merge pull request #1957 from hathach/fix-old-picosdk
Fix old picosdk
| -rw-r--r-- | .pre-commit-config.yaml | 20 | ||||
| -rw-r--r-- | src/portable/raspberrypi/rp2040/dcd_rp2040.c | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..5a61f5282 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/portable/raspberrypi/rp2040/dcd_rp2040.c b/src/portable/raspberrypi/rp2040/dcd_rp2040.c index 37dec1cbf..4af8c2d71 100644 --- a/src/portable/raspberrypi/rp2040/dcd_rp2040.c +++ b/src/portable/raspberrypi/rp2040/dcd_rp2040.c @@ -385,6 +385,11 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void) /* 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) { assert(rhport == 0); |
