-
Notifications
You must be signed in to change notification settings - Fork 17
/
cpcd.conf
100 lines (80 loc) · 2.9 KB
/
cpcd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Instance Name
# Optional, defaults to "cpcd_0"
# This string uniquely identifies the running cpcd instance.
# An application must pass this value to cpc_init() to connect
# to this particular instance.
instance_name: cpcd_0
# Bus type selection
# Mandatory
# Allowed values : UART or SPI or NETLINK_SDIO
bus_type: UART
# SPI device file
# Mandatory if spi chosen, ignored if uart chosen
spi_device_file: /dev/spidev0.0
# SPI RX IRQ gpio chip
# Mandatory if spi chosen, ignored if uart chosen
spi_rx_irq_gpio_chip: gpiochip0
# SPI RX IRQ gpio
# RX interrupt gpio selection
spi_rx_irq_gpio: 22
# SPI bitrate.
# Ignored if uart chosen.
# See doc/spi_bitrate.md for a complete explanation
spi_device_bitrate: 1000000
# UART device file
# Mandatory if uart chosen, ignored if spi chosen
uart_device_file: /dev/ttyACM0
# UART baud rate.
# Optional if uart chosen, ignored if spi chosen. Defaults to 115200
# Allowed values : standard UART baud rates listed in 'termios.h'
uart_device_baud: 115200
# UART flow control.
# Optional if uart chosen, ignored if spi chosen. Defaults to 'true'
# Allowed values are 'true' or 'false'
uart_hardflow: true
# BOOTLOADER Recovery Pins Enabled
# Set to true to enter bootloader via wake and reset pins
# If true, bootloader_wake_gpio/chip and bootloader_reset_gpio/chip must be configured
bootloader_recovery_pins_enabled: false
# BOOTLOADER WAKE gpio chip
# Wakeup gpio chip used by the bootloader
bootloader_wake_gpio_chip: gpiochip0
# BOOTLOADER WAKE gpio
# Wakeup gpio used by the bootloader
# Ensure bootloader_recovery_pins_enabled=true to use this pin
bootloader_wake_gpio: 24
# BOOTLOADER RESET gpio chip
# Reset gpio chip used by the bootloader
bootloader_reset_gpio_chip: gpiochip0
# BOOTLOADER RESET gpio
# Reset gpio used by the bootloader
# Ensure bootloader_recovery_pins_enabled=true to use this pin
bootloader_reset_gpio: 23
# Prints tracing information to stdout
# Optional, defaults to 'false'
# Allowed values are 'true' or 'false'
stdout_trace: false
# Prints tracing information to a file located under traces_folder
# Optional, defaults to 'false'
# Allowed values are 'true' or 'false'
trace_to_file: false
# Traces folder
# Optional, defaults to '/dev/shm/cpcd-traces'
# Folder mounted on a tmpfs is preferred
traces_folder: /dev/shm/cpcd-traces
# Enable frame trace
# Optional, defaults to 'false'
# Allowed values are 'true' or 'false'
enable_frame_trace: false
# Number of open file descriptors.
# Optional, defaults to 2000
# If the error 'Too many open files' occurs, this is the value to increase.
rlimit_nofile: 2000
# Disable the encryption over CPC endpoints
# Optional, defaults false
disable_encryption: false
# Binding key file
# Mandatory when security is used
# Must have 32 alphanumeric characters as the first line, representing a 128 bit binding key
# If ECDH encryption is used, this file will be created during the binding process
binding_key_file: ~/.cpcd/binding.key