Skip to content

Commit f6e7138

Browse files
authored
Merge pull request #10 from christoph2/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents aa1cfd5 + 140a364 commit f6e7138

File tree

13 files changed

+205
-204
lines changed

13 files changed

+205
-204
lines changed

.idea/cxcp.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
description: "Forces line endings to LF."
1414

1515
- repo: https://github.com/pre-commit/mirrors-clang-format
16-
rev: v21.1.2
16+
rev: v21.1.5
1717
hooks:
1818
- id: clang-format
1919
types_or: [c, c++]

examples/debug_on_pico/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ XCP_DAQ_DEFINE_MEASUREMENT_VARIABLE(dummy), XCP_DAQ_DEFINE_MEASUREMENT_VARIABLE(
6767
#endif
6868

6969
int main() {
70-
unsigned long start = 0;
71-
unsigned long stop = 0;
72-
unsigned long time_point=0;
73-
unsigned long elapsed_time=0;
70+
unsigned long start = 0;
71+
unsigned long stop = 0;
72+
unsigned long time_point = 0;
73+
unsigned long elapsed_time = 0;
7474

7575
voltage1 = 10.0f;
7676
voltage2 = 20.0f;
@@ -103,4 +103,4 @@ int main() {
103103
}
104104

105105
return 0;
106-
}
106+
}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
2+
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -8,35 +8,35 @@
88
#define _TUSB_CONFIG_H_
99

1010
#ifdef __cplusplus
11-
extern "C" {
12-
#endif
13-
14-
#define CFG_TUD_ENABLED (1)
15-
16-
// Legacy RHPORT configuration
17-
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_FULL_SPEED)
18-
#ifndef BOARD_TUD_RHPORT
19-
#define BOARD_TUD_RHPORT (0)
20-
#endif
21-
// end legacy RHPORT
22-
23-
//------------------------
24-
// DEVICE CONFIGURATION //
25-
//------------------------
26-
27-
// Enable 2 CDC classes
28-
#define CFG_TUD_CDC (2)
29-
// Set CDC FIFO buffer sizes
30-
#define CFG_TUD_CDC_RX_BUFSIZE (64)
31-
#define CFG_TUD_CDC_TX_BUFSIZE (64)
32-
#define CFG_TUD_CDC_EP_BUFSIZE (64)
33-
34-
#ifndef CFG_TUD_ENDPOINT0_SIZE
35-
#define CFG_TUD_ENDPOINT0_SIZE (64)
36-
#endif
37-
38-
#ifdef __cplusplus
39-
}
11+
extern "C" {
12+
#endif
13+
14+
#define CFG_TUD_ENABLED (1)
15+
16+
// Legacy RHPORT configuration
17+
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_FULL_SPEED)
18+
#ifndef BOARD_TUD_RHPORT
19+
#define BOARD_TUD_RHPORT (0)
20+
#endif
21+
// end legacy RHPORT
22+
23+
//------------------------
24+
// DEVICE CONFIGURATION //
25+
//------------------------
26+
27+
// Enable 2 CDC classes
28+
#define CFG_TUD_CDC (2)
29+
// Set CDC FIFO buffer sizes
30+
#define CFG_TUD_CDC_RX_BUFSIZE (64)
31+
#define CFG_TUD_CDC_TX_BUFSIZE (64)
32+
#define CFG_TUD_CDC_EP_BUFSIZE (64)
33+
34+
#ifndef CFG_TUD_ENDPOINT0_SIZE
35+
#define CFG_TUD_ENDPOINT0_SIZE (64)
36+
#endif
37+
38+
#ifdef __cplusplus
39+
}
4040
#endif
4141

4242
#endif /* _TUSB_CONFIG_H_ */

0 commit comments

Comments
 (0)