• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 The Pigweed Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 //     https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 #pragma once
15 
16 // PW_SYSTEM_LOG_BUFFER_SIZE is the log buffer size which determines how many
17 // log entries can be buffered prior to streaming them.
18 //
19 // Defaults to 4KiB.
20 #ifndef PW_SYSTEM_LOG_BUFFER_SIZE
21 #define PW_SYSTEM_LOG_BUFFER_SIZE 4096
22 #endif  // PW_SYSTEM_LOG_BUFFER_SIZE
23 
24 // PW_SYSTEM_MAX_LOG_ENTRY_SIZE limits the proto-encoded log entry size. This
25 // value might depend on a target interface's MTU.
26 //
27 // Defaults to 512B.
28 #ifndef PW_SYSTEM_MAX_LOG_ENTRY_SIZE
29 #define PW_SYSTEM_MAX_LOG_ENTRY_SIZE 512
30 #endif  // PW_SYSTEM_MAX_LOG_ENTRY_SIZE
31 
32 // PW_SYSTEM_MAX_TRANSMISSION_UNIT target's MTU.
33 //
34 // Defaults to 512B.
35 #ifndef PW_SYSTEM_MAX_TRANSMISSION_UNIT
36 #define PW_SYSTEM_MAX_TRANSMISSION_UNIT 512
37 #endif  // PW_SYSTEM_MAX_TRANSMISSION_UNIT
38 
39 // PW_SYSTEM_DEFAULT_CHANNEL_ID RPC channel ID to host.
40 //
41 // Defaults to 1.
42 #ifndef PW_SYSTEM_DEFAULT_CHANNEL_ID
43 #define PW_SYSTEM_DEFAULT_CHANNEL_ID 1
44 #endif  // PW_SYSTEM_DEFAULT_CHANNEL_ID
45 
46 // PW_SYSTEM_DEFAULT_RPC_HDLC_ADDRESS RPC HDLC default address.
47 //
48 // Defaults to 82.
49 #ifndef PW_SYSTEM_DEFAULT_RPC_HDLC_ADDRESS
50 #define PW_SYSTEM_DEFAULT_RPC_HDLC_ADDRESS 82
51 #endif  // PW_SYSTEM_DEFAULT_RPC_HDLC_ADDRESS
52 
53 // PW_SYSTEM_WORK_QUEUE_MAX_ENTRIES specifies the maximum number of work queue
54 // entries that may be staged at once.
55 //
56 // Defaults to 32.
57 #ifndef PW_SYSTEM_WORK_QUEUE_MAX_ENTRIES
58 #define PW_SYSTEM_WORK_QUEUE_MAX_ENTRIES 32
59 #endif  // PW_SYSTEM_WORK_QUEUE_MAX_ENTRIES
60 
61 // PW_SYSTEM_SOCKET_IO_PORT specifies the port number to use for the socket
62 // stream implementation of pw_system's I/O interface.
63 //
64 // Defaults to 33000.
65 #ifndef PW_SYSTEM_SOCKET_IO_PORT
66 #define PW_SYSTEM_SOCKET_IO_PORT 33000
67 #endif  // PW_SYSTEM_SOCKET_IO_PORT
68