Skip to content

Commit b443851

Browse files
authored
Merge pull request hathach#1957 from hathach/fix-old-picosdk
Fix old picosdk
2 parents ea8ecea + ffa56a1 commit b443851

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
repos:
6+
- repo: local
7+
hooks:
8+
- id: codespell
9+
name: codespell
10+
entry: codespell
11+
types_or: [c, header]
12+
language: system
13+
14+
- id: unit-test
15+
name: unit-test
16+
files: ^(src/|test/unit-test/)
17+
entry: sh -c "cd test/unit-test && ceedling test:all"
18+
pass_filenames: false
19+
types_or: [c, header]
20+
language: system

src/portable/raspberrypi/rp2040/dcd_rp2040.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
385385
/* Controller API
386386
*------------------------------------------------------------------*/
387387

388+
// older SDK
389+
#ifndef PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY
390+
#define PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY 0xff
391+
#endif
392+
388393
void dcd_init (uint8_t rhport)
389394
{
390395
assert(rhport == 0);

0 commit comments

Comments
 (0)