/
config_default.h
1769 lines (1604 loc) · 49.6 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
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* @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__
/**
* Used to include driver header files and the c-file source.
*/
#if defined(FAMILY_LINUX)
# define PORT_HAS_EXTI
# define PORT_HAS_PIN
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_PWM
# define PORT_HAS_PWM_SOFT
# define PORT_HAS_ADC
# define PORT_HAS_DAC
# define PORT_HAS_SPI
# define PORT_HAS_UART
# define PORT_HAS_SD
# define PORT_HAS_DS18B20
# define PORT_HAS_OWI
# define PORT_HAS_FLASH
# define PORT_HAS_ANALOG_INPUT_PIN
# define PORT_HAS_ANALOG_OUTPUT_PIN
# define PORT_HAS_CAN
# define PORT_HAS_RANDOM
#endif
#if defined(FAMILY_AVR)
# define PORT_HAS_EXTI
# define PORT_HAS_PIN
# define PORT_HAS_PWM
# define PORT_HAS_PWM_SOFT
# define PORT_HAS_ADC
# define PORT_HAS_SPI
# define PORT_HAS_UART
# define PORT_HAS_I2C
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_UART_SOFT
# define PORT_HAS_OWI
# define PORT_HAS_DS18B20
# define PORT_HAS_DS3231
# define PORT_HAS_MCP2515
# define PORT_HAS_NRF24L01
# define PORT_HAS_SD
# define PORT_HAS_WATCHDOG
# define PORT_HAS_ANALOG_INPUT_PIN
# define PORT_HAS_ANALOG_OUTPUT_PIN
# if defined(MCU_ATMEGA32U4)
# define PORT_HAS_USB
# define PORT_HAS_USB_DEVICE
# endif
#endif
#if defined(FAMILY_SAM)
# define PORT_HAS_CHIPID
# define PORT_HAS_EXTI
# define PORT_HAS_FLASH
# define PORT_HAS_PIN
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_SPI
# define PORT_HAS_UART
# define PORT_HAS_SD
# define PORT_HAS_CAN
# define PORT_HAS_MCP2515
# define PORT_HAS_OWI
# define PORT_HAS_DS18B20
# define PORT_HAS_ADC
# define PORT_HAS_DAC
# define PORT_HAS_USB
# define PORT_HAS_USB_HOST
# define PORT_HAS_ANALOG_INPUT_PIN
#endif
#if defined(FAMILY_ESP)
# define PORT_HAS_EXTI
# define PORT_HAS_PIN
# define PORT_HAS_PWM_SOFT
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_SPI
# define PORT_HAS_UART
# define PORT_HAS_UART_SOFT
# define PORT_HAS_ADC
# define PORT_HAS_ANALOG_INPUT_PIN
# define PORT_HAS_FLASH
# define PORT_HAS_ESP_WIFI
# define PORT_HAS_RANDOM
#endif
#if defined(FAMILY_ESP32)
# define PORT_HAS_FLASH
# define PORT_HAS_PIN
# define PORT_HAS_OWI
# define PORT_HAS_DS18B20
# define PORT_HAS_SPI
# define PORT_HAS_UART
# define PORT_HAS_ADC
# define PORT_HAS_ANALOG_INPUT_PIN
# define PORT_HAS_DAC
# define PORT_HAS_ESP_WIFI
# define PORT_HAS_CAN
# define PORT_HAS_RANDOM
#endif
#if defined(FAMILY_STM32F1)
# define PORT_HAS_PIN
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_UART
# define PORT_HAS_FLASH
#endif
#if defined(FAMILY_STM32F2)
# define PORT_HAS_PIN
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_UART
# define PORT_HAS_FLASH
# define PORT_HAS_SDIO
# define PORT_HAS_BCM43362
#endif
#if defined(FAMILY_STM32F3)
# define PORT_HAS_PIN
# define PORT_HAS_I2C_SOFT
# define PORT_HAS_UART
# define PORT_HAS_FLASH
#endif
/**
* 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) || defined(ARCH_ESP)
# 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
/**
* Enable the adc driver.
*/
#ifndef CONFIG_ADC
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_ADC)
# define CONFIG_ADC 0
# else
# define CONFIG_ADC 1
# endif
#endif
/**
* Enable the analog_input_pin driver.
*/
#ifndef CONFIG_ANALOG_INPUT_PIN
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_ANALOG_INPUT_PIN)
# define CONFIG_ANALOG_INPUT_PIN 0
# else
# define CONFIG_ANALOG_INPUT_PIN 1
# endif
#endif
/**
* Enable the analog_output_pin driver.
*/
#ifndef CONFIG_ANALOG_OUTPUT_PIN
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_ANALOG_OUTPUT_PIN)
# define CONFIG_ANALOG_OUTPUT_PIN 0
# else
# define CONFIG_ANALOG_OUTPUT_PIN 1
# endif
#endif
/**
* Enable the bcm43362 driver.
*/
#ifndef CONFIG_BCM43362
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_BCM43362)
# define CONFIG_BCM43362 0
# else
# define CONFIG_BCM43362 1
# endif
#endif
/**
* Enable the can driver.
*/
#ifndef CONFIG_CAN
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_CAN)
# define CONFIG_CAN 0
# else
# define CONFIG_CAN 1
# endif
#endif
/**
* Enable the chipid driver.
*/
#ifndef CONFIG_CHIPID
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_CHIPID)
# define CONFIG_CHIPID 0
# else
# define CONFIG_CHIPID 1
# endif
#endif
/**
* Enable the random driver.
*/
#ifndef CONFIG_RANDOM
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_RANDOM)
# define CONFIG_RANDOM 0
# else
# define CONFIG_RANDOM 1
# endif
#endif
/**
* Enable the dac driver.
*/
#ifndef CONFIG_DAC
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_DAC)
# define CONFIG_DAC 0
# else
# define CONFIG_DAC 1
# endif
#endif
/**
* Enable the ds18b20 driver.
*/
#ifndef CONFIG_DS18B20
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_DS18B20)
# define CONFIG_DS18B20 0
# else
# define CONFIG_DS18B20 1
# endif
#endif
/**
* Enable the ds3231 driver.
*/
#ifndef CONFIG_DS3231
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_DS3231)
# define CONFIG_DS3231 0
# else
# define CONFIG_DS3231 1
# endif
#endif
/**
* Enable the esp_wifi driver.
*/
#ifndef CONFIG_ESP_WIFI
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_ESP_WIFI)
# define CONFIG_ESP_WIFI 0
# else
# define CONFIG_ESP_WIFI 1
# endif
#endif
/**
* Enable the exti driver.
*/
#ifndef CONFIG_EXTI
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_EXTI)
# define CONFIG_EXTI 0
# else
# define CONFIG_EXTI 1
# endif
#endif
/**
* Enable the flash driver.
*/
#ifndef CONFIG_FLASH
# if defined(BOARD_ARDUINO_DUE) || defined(ARCH_LINUX) || defined(ARCH_ESP) || defined(ARCH_ESP32) || defined(FAMILY_STM32F1) || defined(FAMILY_STM32F2) || defined(FAMILY_STM32F3)
# define CONFIG_FLASH 1
# else
# define CONFIG_FLASH 0
# endif
#endif
/**
* Enable the i2c driver.
*/
#ifndef CONFIG_I2C
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_I2C)
# define CONFIG_I2C 0
# else
# define CONFIG_I2C 1
# endif
#endif
/**
* Enable the i2c_soft driver.
*/
#ifndef CONFIG_I2C_SOFT
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_I2C_SOFT)
# define CONFIG_I2C_SOFT 0
# else
# define CONFIG_I2C_SOFT 1
# endif
#endif
/**
* Enable the mcp2515 driver.
*/
#ifndef CONFIG_MCP2515
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_MCP2515)
# define CONFIG_MCP2515 0
# else
# define CONFIG_MCP2515 1
# endif
#endif
/**
* Enable the nrf24l01 driver.
*/
#ifndef CONFIG_NRF24L01
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_NRF24L01)
# define CONFIG_NRF24L01 0
# else
# define CONFIG_NRF24L01 1
# endif
#endif
/**
* Enable the owi driver.
*/
#ifndef CONFIG_OWI
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_OWI)
# define CONFIG_OWI 0
# else
# define CONFIG_OWI 1
# endif
#endif
/**
* Enable the pin driver.
*/
#ifndef CONFIG_PIN
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_PIN)
# define CONFIG_PIN 0
# else
# define CONFIG_PIN 1
# endif
#endif
/**
* Enable the pwm driver.
*/
#ifndef CONFIG_PWM
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_PWM)
# define CONFIG_PWM 0
# else
# define CONFIG_PWM 1
# endif
#endif
/**
* Enable the pwm_soft driver.
*/
#ifndef CONFIG_PWM_SOFT
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_PWM_SOFT)
# define CONFIG_PWM_SOFT 0
# else
# define CONFIG_PWM_SOFT 1
# endif
#endif
/**
* Enable the sd driver.
*/
#ifndef CONFIG_SD
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_SD)
# define CONFIG_SD 0
# else
# define CONFIG_SD 1
# endif
#endif
/**
* Enable the sdio driver.
*/
#ifndef CONFIG_SDIO
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_SDIO)
# define CONFIG_SDIO 0
# else
# define CONFIG_SDIO 1
# endif
#endif
/**
* Enable the spi driver.
*/
#ifndef CONFIG_SPI
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_SPI)
# define CONFIG_SPI 0
# else
# define CONFIG_SPI 1
# endif
#endif
/**
* Enable the uart driver.
*/
#ifndef CONFIG_UART
# define CONFIG_UART 1
#endif
/**
* Enable the uart_soft driver.
*/
#ifndef CONFIG_UART_SOFT
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_UART_SOFT)
# define CONFIG_UART_SOFT 0
# else
# define CONFIG_UART_SOFT 1
# endif
#endif
/**
* Enable the usb driver.
*/
#ifndef CONFIG_USB
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_USB)
# define CONFIG_USB 0
# elif defined(BOARD_ARDUINO_PRO_MICRO) || defined(BOARD_ARDUINO_DUE)
# define CONFIG_USB 1
# else
# define CONFIG_USB 0
# endif
#endif
/**
* Enable the usb_device driver.
*/
#ifndef CONFIG_USB_DEVICE
# if defined(PORT_HAS_USB_DEVICE)
# define CONFIG_USB_DEVICE 1
# else
# define CONFIG_USB_DEVICE 0
# endif
#endif
/**
* Enable the usb_host driver.
*/
#ifndef CONFIG_USB_HOST
# if defined(CONFIG_MINIMAL_SYSTEM) || !defined(PORT_HAS_USB_HOST)
# define CONFIG_USB_HOST 0
# elif defined(BOARD_ARDUINO_DUE)
# define CONFIG_USB_HOST 1
# else
# define CONFIG_USB_HOST 0
# endif
#endif
/**
* Enable the watchdog driver.
*/
#ifndef CONFIG_WATCHDOG
# if defined(BOARD_ARDUINO_PRO_MICRO)
# define CONFIG_WATCHDOG 1
# elif defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_WATCHDOG 0
# elif defined(FAMILY_AVR)
# define CONFIG_WATCHDOG 1
# else
# define CONFIG_WATCHDOG 0
# endif
#endif
/**
* Initialize the adc driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_ADC
# if CONFIG_ADC == 1
# define CONFIG_MODULE_INIT_ADC 1
# else
# define CONFIG_MODULE_INIT_ADC 0
# endif
#endif
/**
* Initialize the analog_input_pin driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_ANALOG_INPUT_PIN
# if CONFIG_ANALOG_INPUT_PIN == 1
# define CONFIG_MODULE_INIT_ANALOG_INPUT_PIN 1
# else
# define CONFIG_MODULE_INIT_ANALOG_INPUT_PIN 0
# endif
#endif
/**
* Initialize the analog_output_pin driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_ANALOG_OUTPUT_PIN
# if CONFIG_ANALOG_OUTPUT_PIN == 1
# define CONFIG_MODULE_INIT_ANALOG_OUTPUT_PIN 1
# else
# define CONFIG_MODULE_INIT_ANALOG_OUTPUT_PIN 0
# endif
#endif
/**
* Initialize the bcm43362 driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_BCM43362
# if CONFIG_BCM43362 == 1
# define CONFIG_MODULE_INIT_BCM43362 1
# else
# define CONFIG_MODULE_INIT_BCM43362 0
# endif
#endif
/**
* Initialize the can driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_CAN
# if CONFIG_CAN == 1
# define CONFIG_MODULE_INIT_CAN 1
# else
# define CONFIG_MODULE_INIT_CAN 0
# endif
#endif
/**
* Initialize the chipid driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_CHIPID
# if CONFIG_CHIPID == 1
# define CONFIG_MODULE_INIT_CHIPID 1
# else
# define CONFIG_MODULE_INIT_CHIPID 0
# endif
#endif
/**
* Initialize the random driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_RANDOM
# if CONFIG_RANDOM == 1
# define CONFIG_MODULE_INIT_RANDOM 1
# else
# define CONFIG_MODULE_INIT_RANDOM 0
# endif
#endif
/**
* Initialize the dac driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_DAC
# if CONFIG_DAC == 1
# define CONFIG_MODULE_INIT_DAC 1
# else
# define CONFIG_MODULE_INIT_DAC 0
# endif
#endif
/**
* Initialize the ds18b20 driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_DS18B20
# if CONFIG_DS18B20 == 1
# define CONFIG_MODULE_INIT_DS18B20 1
# else
# define CONFIG_MODULE_INIT_DS18B20 0
# endif
#endif
/**
* Initialize the ds3231 driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_DS3231
# if CONFIG_DS3231 == 1
# define CONFIG_MODULE_INIT_DS3231 1
# else
# define CONFIG_MODULE_INIT_DS3231 0
# endif
#endif
/**
* Initialize the esp_wifi driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_ESP_WIFI
# if CONFIG_ESP_WIFI == 1
# define CONFIG_MODULE_INIT_ESP_WIFI 1
# else
# define CONFIG_MODULE_INIT_ESP_WIFI 0
# endif
#endif
/**
* Initialize the exti driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_EXTI
# if CONFIG_EXTI == 1
# define CONFIG_MODULE_INIT_EXTI 1
# else
# define CONFIG_MODULE_INIT_EXTI 0
# endif
#endif
/**
* Initialize the flash driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_FLASH
# if CONFIG_FLASH == 1
# define CONFIG_MODULE_INIT_FLASH 1
# else
# define CONFIG_MODULE_INIT_FLASH 0
# endif
#endif
/**
* Initialize the i2c driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_I2C
# if CONFIG_I2C == 1
# define CONFIG_MODULE_INIT_I2C 1
# else
# define CONFIG_MODULE_INIT_I2C 0
# endif
#endif
/**
* Initialize the i2c_soft driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_I2C_SOFT
# if CONFIG_I2C_SOFT == 1
# define CONFIG_MODULE_INIT_I2C_SOFT 1
# else
# define CONFIG_MODULE_INIT_I2C_SOFT 0
# endif
#endif
/**
* Initialize the mcp2515 driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_MCP2515
# if CONFIG_MCP2515 == 1
# define CONFIG_MODULE_INIT_MCP2515 1
# else
# define CONFIG_MODULE_INIT_MCP2515 0
# endif
#endif
/**
* Initialize the nrf24l01 driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_NRF24L01
# if CONFIG_NRF24L01 == 1
# define CONFIG_MODULE_INIT_NRF24L01 1
# else
# define CONFIG_MODULE_INIT_NRF24L01 0
# endif
#endif
/**
* Initialize the owi driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_OWI
# if CONFIG_OWI == 1
# define CONFIG_MODULE_INIT_OWI 1
# else
# define CONFIG_MODULE_INIT_OWI 0
# endif
#endif
/**
* Initialize the pin driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_PIN
# if CONFIG_PIN == 1
# define CONFIG_MODULE_INIT_PIN 1
# else
# define CONFIG_MODULE_INIT_PIN 0
# endif
#endif
/**
* Initialize the pwm driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_PWM
# if CONFIG_PWM == 1
# define CONFIG_MODULE_INIT_PWM 1
# else
# define CONFIG_MODULE_INIT_PWM 0
# endif
#endif
/**
* Initialize the pwm_soft driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_PWM_SOFT
# if CONFIG_PWM_SOFT == 1
# define CONFIG_MODULE_INIT_PWM_SOFT 1
# else
# define CONFIG_MODULE_INIT_PWM_SOFT 0
# endif
#endif
/**
* Initialize the sd driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_SD
# if CONFIG_SD == 1
# define CONFIG_MODULE_INIT_SD 1
# else
# define CONFIG_MODULE_INIT_SD 0
# endif
#endif
/**
* Initialize the sdio driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_SDIO
# if CONFIG_SDIO == 1
# define CONFIG_MODULE_INIT_SDIO 1
# else
# define CONFIG_MODULE_INIT_SDIO 0
# endif
#endif
/**
* Initialize the spi driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_SPI
# if CONFIG_SPI == 1
# define CONFIG_MODULE_INIT_SPI 1
# else
# define CONFIG_MODULE_INIT_SPI 0
# endif
#endif
/**
* Initialize the uart driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_UART
# if CONFIG_UART == 1
# define CONFIG_MODULE_INIT_UART 1
# else
# define CONFIG_MODULE_INIT_UART 0
# endif
#endif
/**
* Initialize the uart_soft driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_UART_SOFT
# if CONFIG_UART_SOFT == 1
# define CONFIG_MODULE_INIT_UART_SOFT 1
# else
# define CONFIG_MODULE_INIT_UART_SOFT 0
# endif
#endif
/**
* Initialize the usb driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_USB
# if CONFIG_USB == 1
# define CONFIG_MODULE_INIT_USB 1
# else
# define CONFIG_MODULE_INIT_USB 0
# endif
#endif
/**
* Initialize the usb_device driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_USB_DEVICE
# if CONFIG_USB_DEVICE == 1
# define CONFIG_MODULE_INIT_USB_DEVICE 1
# else
# define CONFIG_MODULE_INIT_USB_DEVICE 0
# endif
#endif
/**
* Initialize the usb_host driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_USB_HOST
# if CONFIG_USB_HOST == 1
# define CONFIG_MODULE_INIT_USB_HOST 1
# else
# define CONFIG_MODULE_INIT_USB_HOST 0
# endif
#endif
/**
* Initialize the watchdog driver module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_WATCHDOG
# if CONFIG_WATCHDOG == 1
# define CONFIG_MODULE_INIT_WATCHDOG 1
# else
# define CONFIG_MODULE_INIT_WATCHDOG 0
# endif
#endif
/**
* Initialize the bus module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_BUS
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_MODULE_INIT_BUS 0
# else
# define CONFIG_MODULE_INIT_BUS 1
# endif
#endif
/**
* Initialize the inet module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_INET
# if defined(CONFIG_MINIMAL_SYSTEM) || defined(ARCH_ARM) || defined(ARCH_AVR)
# define CONFIG_MODULE_INIT_INET 0
# else
# define CONFIG_MODULE_INIT_INET 1
# endif
#endif
/**
* Initialize the ping module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_PING
# if defined(CONFIG_MINIMAL_SYSTEM) || defined(ARCH_ARM) || defined(ARCH_AVR)
# define CONFIG_MODULE_INIT_PING 0
# else
# define CONFIG_MODULE_INIT_PING 1
# endif
#endif
/**
* Initialize the socket module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_SOCKET
# if defined(CONFIG_MINIMAL_SYSTEM) || defined(ARCH_ARM) || defined(ARCH_AVR)
# define CONFIG_MODULE_INIT_SOCKET 0
# else
# define CONFIG_MODULE_INIT_SOCKET 1
# endif
#endif
/**
* Initialize the network_interface module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_NETWORK_INTERFACE
# if defined(CONFIG_MINIMAL_SYSTEM) || defined(ARCH_ARM) || defined(ARCH_AVR)
# define CONFIG_MODULE_INIT_NETWORK_INTERFACE 0
# else
# define CONFIG_MODULE_INIT_NETWORK_INTERFACE 1
# endif
#endif
/**
* Initialize the ssl module at system startup.
*/
#ifndef CONFIG_MODULE_INIT_SSL
# if defined(CONFIG_MINIMAL_SYSTEM)
# define CONFIG_MODULE_INIT_SSL 0
# elif defined(ARCH_ESP) || defined(ARCH_ESP32) || defined(ARCH_LINUX)
# define CONFIG_MODULE_INIT_SSL 1
# else
# define CONFIG_MODULE_INIT_SSL 0
# 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) || defined(BOARD_NODEMCU)
# 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
/**