We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f77610 commit bf52bfeCopy full SHA for bf52bfe
samples/drivers/CAN/mcp2515-dts.overlay
@@ -0,0 +1,18 @@
1
+/*
2
+ * Copyright (c) 2019 Karsten Koenig
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+&spi1 {
8
+ status = "ok";
9
+ mcp2515@0 {
10
+ compatible = "microchip,mcp2515";
11
+ spi-port-name = "SPI_1";
12
+ spi-max-frequency = <1000000>;
13
+ int-gpios = <&gpiob 4 GPIO_INT_ACTIVE_LOW>;
14
15
+ label = "CAN_1";
16
+ reg = <0>;
17
+ };
18
+};
samples/drivers/CAN/prj.conf.mcp2515
@@ -0,0 +1,6 @@
+# CAN + MCP2515 config
+CONFIG_SPI=y
+CONFIG_CAN=y
+CONFIG_CAN_INIT_PRIORITY=80
+CONFIG_CAN_1=y
+CONFIG_CAN_MCP2515=y
0 commit comments