Skip to content

Commit 2f73225

Browse files
henrikbrixandersencarlescufi
authored andcommitted
drivers: can: rewrite the CAN shell module
Rewrite the CAN shell module to catch up with the added CAN controller API functionality. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 56e0ff0 commit 2f73225

File tree

2 files changed

+636
-341
lines changed

2 files changed

+636
-341
lines changed

drivers/can/Kconfig

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,31 @@ config CAN_INIT_PRIORITY
2424
CAN driver device initialization priority.
2525

2626
config CAN_SHELL
27-
bool "CAN Shell"
27+
bool "CAN shell"
2828
default y
2929
depends on SHELL
3030
select POLL
3131
help
3232
Enable CAN Shell for testing.
3333

34+
if CAN_SHELL
35+
36+
config CAN_SHELL_TX_QUEUE_SIZE
37+
int "CAN shell transmit queue size"
38+
default 5
39+
range 1 256
40+
help
41+
Maximum number of events in the CAN shell transmit queue.
42+
43+
config CAN_SHELL_RX_QUEUE_SIZE
44+
int "CAN shell receive queue size"
45+
default 5
46+
range 1 256
47+
help
48+
Maximum number of CAN frames in the CAN shell receive queue.
49+
50+
endif # CAN_SHELL
51+
3452
config CAN_STATS
3553
bool "CAN controller device statistics"
3654
depends on STATS

0 commit comments

Comments
 (0)