Skip to content

Commit 6e041aa

Browse files
committed
added jabican_usb_pro support
1 parent b75e3c1 commit 6e041aa

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# NOTE insecure default key used!
2+
CONFIG_BOOTLOADER_MCUBOOT=y
3+
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE="bootloader/mcuboot/root-rsa-2048.pem"
4+
5+
CONFIG_JABI_SERIAL="jabican_usb_pro 69420"
6+
7+
CONFIG_LOG=n
8+
9+
# Interface settings
10+
CONFIG_JABI_REQ_PAYLOAD_MAX_SIZE=4096
11+
CONFIG_JABI_RESP_PAYLOAD_MAX_SIZE=4096
12+
CONFIG_JABI_THREAD_STACK_SIZE=16384
13+
14+
CONFIG_USB_DEVICE_STACK=y
15+
CONFIG_USB_DEVICE_VID=0x0069
16+
CONFIG_USB_DEVICE_PID=0x0420
17+
CONFIG_USB_DEVICE_MANUFACTURER="JABI"
18+
CONFIG_USB_DEVICE_PRODUCT="JABICAN-USB Pro"
19+
CONFIG_USB_SELF_POWERED=n
20+
CONFIG_USB_MAX_POWER=250
21+
22+
CONFIG_UART_INTERRUPT_DRIVEN=y
23+
24+
# Peripheral settings
25+
CONFIG_CAN=y
26+
CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y
27+
CONFIG_GPIO=y
28+
29+
CONFIG_JABI_UART_RX_BUFFER_SIZE=4096
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/ {
2+
interfaces {
3+
compatible = "jabi,interfaces";
4+
usb;
5+
uart = <&cdc_acm_uart0>;
6+
};
7+
8+
peripherals {
9+
compatible = "jabi,peripherals";
10+
uart = <&uart2>; // TODO replace with LIN once driver written
11+
can = <&flexcan0>;
12+
gpio = <&led_red &led_green &led_blue &lin_cmdr_en &lin_pwr_en &can_pwr_en>;
13+
};
14+
};
15+
16+
&zephyr_udc0 {
17+
cdc_acm_uart0: cdc_acm_uart0 {
18+
compatible = "zephyr,cdc-acm-uart";
19+
label = "CDC_ACM_0";
20+
};
21+
};

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manifest:
66
projects:
77
- name: zephyrboards
88
remote: dragonlock2
9-
revision: 0e697c55824727b5ca768ee78fa9f51f7d07d198
9+
revision: 124bde5df9a3d6f614ec539395c3bfcbd16a1231
1010
import: true
1111

1212
self:

0 commit comments

Comments
 (0)