|
14 | 14 | * - Specific to a board: |
15 | 15 | * Create a file called Configuration_local_<board>.hpp, see valid board types in LocalConfiguration.hpp |
16 | 16 | * The code automatically picks the right one at compile time. This is useful if you are |
17 | | -* developer or just have multiple OATs. |
| 17 | +* developer or just have multiple OpenAstroTech mounts. |
18 | 18 | * - Custom configurations or advanced builds: |
19 | 19 | * Use Configuration_local.hpp to include an appropriate local configuration file e.g. according to |
20 | | -* preprocessor directives specified on the command line. This is useful if you have multiple OATs, or wish |
| 20 | +* preprocessor directives specified on the command line. This is useful if you have multiple OpenAstroTech mounts, or wish |
21 | 21 | * to build the software across many software configurations on the same platform. |
22 | 22 | * |
23 | 23 | * These files won't be tracked by Git and thus will remain after branch changes or code updates. |
|
39 | 39 |
|
40 | 40 | // Uncomment the definition and set a board (see Constants.hpp for valid values) if you build in Arduino IDE. |
41 | 41 | // PlatformIO will set this value automatically and no action is needed. |
42 | | -#ifndef BOARD |
43 | | -// #define BOARD BOARD_AVR_MEGA2560 |
44 | | -#endif |
45 | | - |
46 | 42 | #ifndef BOARD |
47 | 43 | #error You have to specify the board |
48 | 44 | #endif |
|
179 | 175 | * Requirements for WIFI_MODE: |
180 | 176 | * WIFI_MODE_DISABLED (i.e. Wifi transceiver disabled) |
181 | 177 | * No additional requirements. |
182 | | - * WIFI_MODE_INFRASTRUCTURE (i.e. connect OAT to existing Wifi network): |
| 178 | + * WIFI_MODE_INFRASTRUCTURE (i.e. connect OpenAstroTech mount to existing Wifi network): |
183 | 179 | * WIFI_INFRASTRUCTURE_MODE_SSID & WIFI_INFRASTRUCTURE_MODE_WPAKEY must be set. |
184 | | - * WIFI_MODE_AP_ONLY (i.e. set OAT as Wifi hotspot): |
| 180 | + * WIFI_MODE_AP_ONLY (i.e. set OpenAstroTech mount as Wifi hotspot): |
185 | 181 | * WIFI_AP_MODE_WPAKEY must be set. |
186 | 182 | * WIFI_MODE_ATTEMPT_INFRASTRUCTURE_FAIL_TO_AP (i.e. try WIFI_MODE_INFRASTRUCTURE, fall back to WIFI_MODE_AP_ONLY): |
187 | 183 | * Requirements for both WIFI_MODE_INFRASTRUCTURE and WIFI_MODE_AP_ONLY must be satisfied. |
|
251 | 247 | #define TRACK_ON_BOOT 1 |
252 | 248 | #endif |
253 | 249 |
|
254 | | -// Set this to specify the amount of debug output OAT should send to the serial port. |
255 | | -// Note that if you use an app to control OAT, ANY debug output will likely confuse that app. |
256 | | -// Debug output is useful if you are using Wifi to control the OAT or if you are issuing |
| 250 | +// Set this to specify the amount of debug output the OpenAstroTech mount should send to the serial port. |
| 251 | +// Note that if you use an app to control the OpenAstroTech mount, ANY debug output will likely confuse that app. |
| 252 | +// Debug output is useful if you are using Wifi to control the OpenAstroTech mount or if you are issuing |
257 | 253 | // manual commands via a terminal. |
258 | 254 | #ifndef DEBUG_LEVEL |
259 | 255 | #define DEBUG_LEVEL (DEBUG_NONE) |
260 | 256 | #endif |
261 | 257 |
|
262 | 258 | // Append board specific pins data. |
263 | | -#if (BOARD == BOARD_AVR_MEGA2560) |
| 259 | +#if (BOARD == BOARD_UNKNOWN) |
| 260 | + // Assume custom user board - no predefined pin mapping. Pins need to be manually defined in Configuration_local.hpp |
| 261 | + #warning "Assuming custom user board. Pins need to be manually defined in Configuration_local.hpp" |
| 262 | +#elif (BOARD == BOARD_AVR_MEGA2560) |
264 | 263 | #include "boards/AVR_MEGA2560/pins_MEGA2560.hpp" |
265 | 264 | #elif (BOARD == BOARD_AVR_RAMPS) |
266 | 265 | #include "boards/RAMPS/pins_RAMPS.hpp" |
|
0 commit comments