/
config_default.h
848 lines (766 loc) · 26.3 KB
/
config_default.h
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
/**
* @section License
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016, Erik Moqvist
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* This file is part of the Simba project.
*/
#ifndef __CONFIG_DEFAULT_H__
#define __CONFIG_DEFAULT_H__
/**
* The system configuration string contains a list of all configration
* varialbes and their values.
*/
#ifndef CONFIG_SYS_CONFIG_STRING
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_SYS_CONFIG_STRING 0
# else
# define CONFIG_SYS_CONFIG_STRING 1
# endif
#endif
/**
* Main thread stack size for ports with a fixed size main thread
* stack.
*/
#ifndef CONFIG_SYS_SIMBA_MAIN_STACK_MAX
# define CONFIG_SYS_SIMBA_MAIN_STACK_MAX 4096
#endif
/**
* Assertions are used to check various conditions during the
* application execution. A typical usage is to validate function
* input arguments.
*/
#ifndef CONFIG_ASSERT
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_ASSERT 0
# else
# define CONFIG_ASSERT 1
# endif
#endif
/**
* Include more debug information.
*/
#ifndef CONFIG_DEBUG
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_DEBUG 0
# else
# define CONFIG_DEBUG 1
# endif
#endif
/**
* Debug file system command to list all DS18B20 sensors on the bus.
*/
#ifndef CONFIG_FS_CMD_DS18B20_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_DS18B20_LIST 0
# else
# define CONFIG_FS_CMD_DS18B20_LIST 1
# endif
#endif
/**
* Debug file system command to print the Espressif WiFi status.
*/
#ifndef CONFIG_FS_CMD_ESP_WIFI_STATUS
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_ESP_WIFI_STATUS 0
# elif defined(BOARD_ESP12E) || defined(BOARD_ESP01)
# define CONFIG_FS_CMD_ESP_WIFI_STATUS 1
# else
# define CONFIG_FS_CMD_ESP_WIFI_STATUS 0
# endif
#endif
/**
* Debug file system command to append to a file.
*/
#ifndef CONFIG_FS_CMD_FS_APPEND
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_APPEND 0
# else
# define CONFIG_FS_CMD_FS_APPEND 1
# endif
#endif
/**
* Debug file system command to list all counters.
*/
#ifndef CONFIG_FS_CMD_FS_COUNTERS_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_COUNTERS_LIST 0
# else
# define CONFIG_FS_CMD_FS_COUNTERS_LIST 1
# endif
#endif
/**
* Debug file system command to set all counters to zero.
*/
#ifndef CONFIG_FS_CMD_FS_COUNTERS_RESET
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_COUNTERS_RESET 0
# else
# define CONFIG_FS_CMD_FS_COUNTERS_RESET 1
# endif
#endif
/**
* Debug file system command to list all registered file systems.
*/
#ifndef CONFIG_FS_CMD_FS_FILESYSTEMS_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_FILESYSTEMS_LIST 0
# else
# define CONFIG_FS_CMD_FS_FILESYSTEMS_LIST 1
# endif
#endif
/**
* Debug file system command to list all registered file systems.
*/
#ifndef CONFIG_FS_CMD_FS_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_LIST 0
# else
# define CONFIG_FS_CMD_FS_LIST 1
# endif
#endif
/**
* Debug file system command to format a file system.
*/
#ifndef CONFIG_FS_CMD_FS_FORMAT
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_FORMAT 0
# else
# define CONFIG_FS_CMD_FS_FORMAT 1
# endif
#endif
/**
* Debug file system command to list all parameters.
*/
#ifndef CONFIG_FS_CMD_FS_PARAMETERS_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_PARAMETERS_LIST 0
# else
# define CONFIG_FS_CMD_FS_PARAMETERS_LIST 1
# endif
#endif
/**
* Debug file system command to read from a file.
*/
#ifndef CONFIG_FS_CMD_FS_READ
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_READ 0
# else
# define CONFIG_FS_CMD_FS_READ 1
# endif
#endif
/**
* Debug file system command to remove a file.
*/
#ifndef CONFIG_FS_CMD_FS_REMOVE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_REMOVE 0
# else
# define CONFIG_FS_CMD_FS_REMOVE 1
# endif
#endif
/**
* Debug file system command to write to a file.
*/
#ifndef CONFIG_FS_CMD_FS_WRITE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_FS_WRITE 0
# else
# define CONFIG_FS_CMD_FS_WRITE 1
# endif
#endif
/**
* Debug file system command to read from a i2c bus.
*/
#ifndef CONFIG_FS_CMD_I2C_READ
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_I2C_READ 0
# else
# define CONFIG_FS_CMD_I2C_READ 1
# endif
#endif
/**
* Debug file system command to write to a i2c bus.
*/
#ifndef CONFIG_FS_CMD_I2C_WRITE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_I2C_WRITE 0
# else
# define CONFIG_FS_CMD_I2C_WRITE 1
# endif
#endif
/**
* Debug file system command to list all log objects.
*/
#ifndef CONFIG_FS_CMD_LOG_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_LOG_LIST 0
# else
# define CONFIG_FS_CMD_LOG_LIST 1
# endif
#endif
/**
* Debug file system command to create a log entry and print
* it. Mainly used for debugging.
*/
#ifndef CONFIG_FS_CMD_LOG_PRINT
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_LOG_PRINT 0
# else
# define CONFIG_FS_CMD_LOG_PRINT 1
# endif
#endif
/**
* Debug file system command to set the log mask of a log object.
*/
#ifndef CONFIG_FS_CMD_LOG_SET_LOG_MASK
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_LOG_SET_LOG_MASK 0
# else
# define CONFIG_FS_CMD_LOG_SET_LOG_MASK 1
# endif
#endif
/**
* Debug file system command to list all network interfaces.
*/
#ifndef CONFIG_FS_CMD_NETWORK_INTERFACE_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_NETWORK_INTERFACE_LIST 0
# else
# define CONFIG_FS_CMD_NETWORK_INTERFACE_LIST 1
# endif
#endif
/**
* Debug file system command to read the current value of a pin.
*/
#ifndef CONFIG_FS_CMD_PIN_READ
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_PIN_READ 0
# else
# define CONFIG_FS_CMD_PIN_READ 1
# endif
#endif
/**
* Debug file system command to set the mode of a pin.
*/
#ifndef CONFIG_FS_CMD_PIN_SET_MODE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_PIN_SET_MODE 0
# else
# define CONFIG_FS_CMD_PIN_SET_MODE 1
# endif
#endif
/**
* Debug file system command to write a value to a pin.
*/
#ifndef CONFIG_FS_CMD_PIN_WRITE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_PIN_WRITE 0
# else
# define CONFIG_FS_CMD_PIN_WRITE 1
# endif
#endif
/**
* Debug file system command to ping a host.
*/
#ifndef CONFIG_FS_CMD_PING_PING
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_PING_PING 0
# else
# define CONFIG_FS_CMD_PING_PING 1
# endif
#endif
/**
* Debug file system command to list all services.
*/
#ifndef CONFIG_FS_CMD_SERVICE_LIST
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SERVICE_LIST 0
# else
# define CONFIG_FS_CMD_SERVICE_LIST 1
# endif
#endif
/**
* Debug file system command to start a service.
*/
#ifndef CONFIG_FS_CMD_SERVICE_START
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SERVICE_START 0
# else
# define CONFIG_FS_CMD_SERVICE_START 1
# endif
#endif
/**
* Debug file system command to stop a services.
*/
#ifndef CONFIG_FS_CMD_SERVICE_STOP
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SERVICE_STOP 0
# else
# define CONFIG_FS_CMD_SERVICE_STOP 1
# endif
#endif
/**
* Debug file system command to list all settings.
*/
#ifndef CONFIG_FS_CMD_SETTINGS_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SETTINGS_LIST 0
# else
# define CONFIG_FS_CMD_SETTINGS_LIST 1
# endif
#endif
/**
* Debug file system command to read the value of a setting.
*/
#ifndef CONFIG_FS_CMD_SETTINGS_READ
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SETTINGS_READ 0
# else
# define CONFIG_FS_CMD_SETTINGS_READ 1
# endif
#endif
/**
* Debug file system command to reset the settings to their original
* values.
*/
#ifndef CONFIG_FS_CMD_SETTINGS_RESET
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SETTINGS_RESET 0
# else
# define CONFIG_FS_CMD_SETTINGS_RESET 1
# endif
#endif
/**
* Debug file system command to write a value to a setting.
*/
#ifndef CONFIG_FS_CMD_SETTINGS_WRITE
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SETTINGS_WRITE 0
# else
# define CONFIG_FS_CMD_SETTINGS_WRITE 1
# endif
#endif
/**
* Debug file system command to print the system configuration.
*/
#ifndef CONFIG_FS_CMD_SYS_CONFIG
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SYS_CONFIG 0
# else
# define CONFIG_FS_CMD_SYS_CONFIG 1
# endif
#endif
/**
* Debug file system command to print the system information.
*/
#ifndef CONFIG_FS_CMD_SYS_INFO
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SYS_INFO 0
# else
# define CONFIG_FS_CMD_SYS_INFO 1
# endif
#endif
/**
* Debug file system command to print the system uptime.
*/
#ifndef CONFIG_FS_CMD_SYS_UPTIME
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SYS_UPTIME 0
# else
# define CONFIG_FS_CMD_SYS_UPTIME 1
# endif
#endif
/**
* Debug file system command to reboot the system uptime.
*/
#ifndef CONFIG_FS_CMD_SYS_REBOOT
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_SYS_REBOOT 0
# else
# define CONFIG_FS_CMD_SYS_REBOOT 1
# endif
#endif
/**
* Debug file system command to list threads' information.
*/
#ifndef CONFIG_FS_CMD_THRD_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_THRD_LIST 0
# else
# define CONFIG_FS_CMD_THRD_LIST 1
# endif
#endif
/**
* Debug file system command to set the log mask of a thread.
*/
#ifndef CONFIG_FS_CMD_THRD_SET_LOG_MASK
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_THRD_SET_LOG_MASK 0
# else
# define CONFIG_FS_CMD_THRD_SET_LOG_MASK 1
# endif
#endif
/**
* Debug file system command to list all USB devices.
*/
#ifndef CONFIG_FS_CMD_USB_DEVICE_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_USB_DEVICE_LIST 0
# else
# define CONFIG_FS_CMD_USB_DEVICE_LIST 1
# endif
#endif
/**
* Debug file system command to list all USB devices connected to the
* USB host.
*/
#ifndef CONFIG_FS_CMD_USB_HOST_LIST
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_FS_CMD_USB_HOST_LIST 0
# else
# define CONFIG_FS_CMD_USB_HOST_LIST 1
# endif
#endif
/**
* The maximum length of an absolute path in the file system.
*/
#ifndef CONFIG_FS_PATH_MAX
# define CONFIG_FS_PATH_MAX 64
#endif
/**
* Start the monitor thread to gather statistics of the scheulder.
*/
#ifndef CONFIG_MONITOR_THREAD
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(BOARD_ESP12E) || defined(BOARD_ESP01) || defined(BOARD_NANO32) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_MONITOR_THREAD 0
# else
# define CONFIG_MONITOR_THREAD 1
# endif
#endif
/**
* Use a preemptive scheduler.
*/
#ifndef CONFIG_PREEMPTIVE_SCHEDULER
# define CONFIG_PREEMPTIVE_SCHEDULER 0
#endif
/**
* Profile the stack usage in runtime. It's a cheap operation and is
* recommended to have enabled.
*/
#ifndef CONFIG_PROFILE_STACK
# define CONFIG_PROFILE_STACK 1
#endif
/**
* Size of the settings area. This size *MUST* have the same size as
* the settings generated by the settings.py script.
*/
#ifndef CONFIG_SETTINGS_AREA_SIZE
# define CONFIG_SETTINGS_AREA_SIZE 256
#endif
/**
* Maximum number of characters in a shell command.
*/
#ifndef CONFIG_SHELL_COMMAND_MAX
# define CONFIG_SHELL_COMMAND_MAX 64
#endif
/**
* Size of the shell history buffer.
*/
#ifndef CONFIG_SHELL_HISTORY_SIZE
# define CONFIG_SHELL_HISTORY_SIZE 768
#endif
/**
* Minimal shell functionality to minimize the code size of the shell
* module.
*/
#ifndef CONFIG_SHELL_MINIMAL
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_SHELL_MINIMAL 1
# else
# define CONFIG_SHELL_MINIMAL 0
# endif
#endif
/**
* The shell prompt string.
*/
#ifndef CONFIG_SHELL_PROMPT
# define CONFIG_SHELL_PROMPT "$ "
#endif
/**
* Raw socket support.
*/
#ifndef CONFIG_SOCKET_RAW
# define CONFIG_SOCKET_RAW 1
#endif
/**
* SPIFFS is a flash file system applicable for boards that has a
* reasonably big modifiable flash.
*/
#ifndef CONFIG_SPIFFS
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_SPIFFS 0
# elif defined(BOARD_ARDUINO_DUE) || defined(ARCH_LINUX) || defined(ARCH_ESP) || defined(ARCH_ESP32)
# define CONFIG_SPIFFS 1
# else
# define CONFIG_SPIFFS 0
# endif
#endif
#define CONFIG_START_CONSOLE_NONE 0
#define CONFIG_START_CONSOLE_UART 1
#define CONFIG_START_CONSOLE_USB_CDC 2
/**
* Start the console device (UART/USB CDC) on system startup.
*/
#ifndef CONFIG_START_CONSOLE
# if defined(BOARD_ARDUINO_PRO_MICRO)
# define CONFIG_START_CONSOLE CONFIG_START_CONSOLE_USB_CDC
# else
# define CONFIG_START_CONSOLE CONFIG_START_CONSOLE_UART
# endif
#endif
/**
* Console device index.
*/
#ifndef CONFIG_START_CONSOLE_DEVICE_INDEX
# define CONFIG_START_CONSOLE_DEVICE_INDEX 0
#endif
/**
* Console UART baudrate.
*/
#ifndef CONFIG_START_CONSOLE_UART_BAUDRATE
# if defined(BOARD_ESP01) || defined(BOARD_ESP12E)
# define CONFIG_START_CONSOLE_UART_BAUDRATE 76800
# elif defined(BOARD_NANO32)
# define CONFIG_START_CONSOLE_UART_BAUDRATE 115200
# else
# define CONFIG_START_CONSOLE_UART_BAUDRATE 38400
# endif
#endif
/**
* Console USB CDC control interface number.
*/
#ifndef CONFIG_START_CONSOLE_USB_CDC_CONTROL_INTERFACE
# define CONFIG_START_CONSOLE_USB_CDC_CONTROL_INTERFACE 0
#endif
/**
* Console USB CDC input endpoint.
*/
#ifndef CONFIG_START_CONSOLE_USB_CDC_ENDPOINT_IN
# define CONFIG_START_CONSOLE_USB_CDC_ENDPOINT_IN 2
#endif
/**
* Console USB CDC output endpoint.
*/
#ifndef CONFIG_START_CONSOLE_USB_CDC_ENDPOINT_OUT
# define CONFIG_START_CONSOLE_USB_CDC_ENDPOINT_OUT 3
#endif
/**
* Wait for the host to connect after starting the console.
*/
#ifndef CONFIG_START_CONSOLE_USB_CDC_WAIT_FOR_CONNETION
# define CONFIG_START_CONSOLE_USB_CDC_WAIT_FOR_CONNETION 1
#endif
/**
* Configure a default file system.
*/
#ifndef CONFIG_START_FILESYSTEM
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_START_FILESYSTEM 0
# elif defined(BOARD_ARDUINO_DUE) || defined(ARCH_LINUX) || defined(ARCH_ESP) || defined(ARCH_ESP32)
# define CONFIG_START_FILESYSTEM 1
# else
# define CONFIG_START_FILESYSTEM 0
# endif
#endif
/**
* Configure a default file system start address.
*/
#ifndef CONFIG_START_FILESYSTEM_ADDRESS
# if defined(BOARD_ARDUINO_DUE)
# define CONFIG_START_FILESYSTEM_ADDRESS 0x000e0000
# elif defined(BOARD_ESP01)
# define CONFIG_START_FILESYSTEM_ADDRESS 0x0006b000
# elif defined(BOARD_ESP12E)
# define CONFIG_START_FILESYSTEM_ADDRESS 0x00300000
# elif defined(BOARD_NANO32)
# define CONFIG_START_FILESYSTEM_ADDRESS 0x00300000
# else
# define CONFIG_START_FILESYSTEM_ADDRESS 0
# endif
#endif
/**
* Configure a default file system size.
*/
#ifndef CONFIG_START_FILESYSTEM_SIZE
# if defined(BOARD_ARDUINO_DUE)
# define CONFIG_START_FILESYSTEM_SIZE 32768
# elif defined(BOARD_ESP01)
# define CONFIG_START_FILESYSTEM_SIZE 0x10000
# elif defined(BOARD_ESP12E)
# define CONFIG_START_FILESYSTEM_SIZE 0xFB000
# elif defined(ARCH_ESP32)
# define CONFIG_START_FILESYSTEM_SIZE 32768
# else
# define CONFIG_START_FILESYSTEM_SIZE 65536
# endif
#endif
/**
* Setup the ip stack and connect to all configured networks.
*/
#ifndef CONFIG_START_NETWORK
# define CONFIG_START_NETWORK 0
#endif
/**
* WiFi connect timeout is seconds.
*/
#ifndef CONFIG_START_NETWORK_INTERFACE_WIFI_CONNECT_TIMEOUT
# define CONFIG_START_NETWORK_INTERFACE_WIFI_CONNECT_TIMEOUT 30
#endif
/**
* SSID of the WiFi to connect to.
*/
#ifndef CONFIG_START_NETWORK_INTERFACE_WIFI_SSID
# define CONFIG_START_NETWORK_INTERFACE_WIFI_SSID MyWiFiSSID
#endif
/**
* Password of the WiFi to connect to.
*/
#ifndef CONFIG_START_NETWORK_INTERFACE_WIFI_PASSWORD
# define CONFIG_START_NETWORK_INTERFACE_WIFI_PASSWORD MyWiFiPassword
#endif
/**
* Start a shell thread communication over the console channels.
*/
#ifndef CONFIG_START_SHELL
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_START_SHELL 0
# else
# define CONFIG_START_SHELL 1
# endif
#endif
/**
* Shell thread priority.
*/
#ifndef CONFIG_START_SHELL_PRIO
# define CONFIG_START_SHELL_PRIO 30
#endif
/**
* Shell thread stack size in words.
*/
#ifndef CONFIG_START_SHELL_STACK_SIZE
# if defined(BOARD_ARDUINO_DUE) || defined(ARCH_ESP)
# define CONFIG_START_SHELL_STACK_SIZE 1536
# elif defined(ARCH_ESP32)
# define CONFIG_START_SHELL_STACK_SIZE 4096
# else
# define CONFIG_START_SHELL_STACK_SIZE 768
# endif
#endif
/**
* Maximum number of bytes in the print output buffer.
*/
#ifndef CONFIG_STD_OUTPUT_BUFFER_MAX
# define CONFIG_STD_OUTPUT_BUFFER_MAX 16
#endif
/**
* System tick frequency in Hertz.
*/
#ifndef CONFIG_SYSTEM_TICK_FREQUENCY
# define CONFIG_SYSTEM_TICK_FREQUENCY 100
#endif
/**
* Calculate thread CPU usage.
*/
#ifndef CONFIG_THRD_CPU_USAGE
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_THRD_CPU_USAGE 0
# else
# define CONFIG_THRD_CPU_USAGE 1
# endif
#endif
/**
* Each thread has a list of environment variables associated with
* it. A typical example of an environment variable is "CWD" - Current
* Working Directory.
*/
#ifndef CONFIG_THRD_ENV
# if defined(BOARD_ARDUINO_NANO) || defined(BOARD_ARDUINO_UNO) || defined(BOARD_ARDUINO_PRO_MICRO) || defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_THRD_ENV 0
# else
# define CONFIG_THRD_ENV 1
# endif
#endif
/**
* Stack size of the idle thread.
*/
#ifndef CONFIG_THRD_IDLE_STACK_SIZE
# if defined(ARCH_ARM)
# define CONFIG_THRD_IDLE_STACK_SIZE 384
# elif defined(ARCH_AVR)
# define CONFIG_THRD_IDLE_STACK_SIZE 156
# elif defined(ARCH_ESP)
# define CONFIG_THRD_IDLE_STACK_SIZE 768
# else
# define CONFIG_THRD_IDLE_STACK_SIZE 1024
# endif
#endif
/**
* Count the number of times each thread has been scheduled.
*/
#ifndef CONFIG_THRD_SCHEDULED
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_THRD_SCHEDULED 0
# else
# define CONFIG_THRD_SCHEDULED 1
# endif
#endif
/**
* Threads are allowed to terminate.
*/
#ifndef CONFIG_THRD_TERMINATE
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_THRD_TERMINATE 0
# else
# define CONFIG_THRD_TERMINATE 1
# endif
#endif
/**
* USB device vendor id.
*/
#ifndef CONFIG_USB_DEVICE_VID
# define CONFIG_USB_DEVICE_VID 0x2341
#endif
/**
* USB device product id.
*/
#ifndef CONFIG_USB_DEVICE_PID
# define CONFIG_USB_DEVICE_PID 0x8037
#endif
/* Configuration validation. */
#if (CONFIG_START_SHELL == 1) && (CONFIG_START_CONSOLE == CONFIG_START_CONSOLE_NONE)
# error "CONFIG_START_SHELL == 1 requires CONFIG_START_CONSOLE != CONFIG_START_CONSOLE_NONE. Please change the configuration."
#endif
#endif