QUESTION: board_config.h

Hi,



I’m using the Wio LTE US Version.



Exploring the library for this board:

https://github.com/Seeed-Studio/Wio_LTE_Arduino_Library

I found a file called “board_config.h” with the following content:

[code]
#ifndef BOARD_CONFIG_H_
#define BOARD_CONFIG_H_

#define UART_DEBUG (false)
#define WIO_TRACKER_LTE_V11 (0)
#define WIO_TRACKER_LTE_V12 (1)

// Module power switch
#define MODULE_PWR_ON (1)
#define GROVE_PWR_ON (1)
#define CODEC_PWR_ON (1)
#define GNSS_ON (1)
#define ANTENNA_PWR_ON (1)
#define RGB_LED_ON (1)

#endif
[/code]

Comparing the library structure of the original Arduino libraries, I only see that they use “X.cpp” and “Y.h” files.



My questions:



1) Whats is the reason of this file?

2) Who other files inside the library are invoking/using this file(board_config.h)?




Thanks,

I hope ypur reply.



-JuanToño

I’m not sure if this will answer your question but, board_config.h is a header file - the program will put it at the top with an include statement. This file defines values needed specifically for the Seeeduino board - they are specific to this board and not in other arduino libraries.



The statements like



#define UART_DEBUG (false)



set values needed. They are like defining constants in the program except that the values are replaced everywhere they are used in the program before the program is compiled - like a search and replace in a word processor.



You can see where the header file is used by looking for it near the top of the source code files.