// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2012-2024 Scott Penrose and WII5 Buoy contributors // // This file is part of WII5 Buoy firmware. // See LICENSE for full terms. /** * @file WII5_board.h * @brief Board-selection shim: forwards to the active board's pin/peripheral header. */ /* WII5 Board File ! This is included in all other files. In here we can change which board file we load. As much as possible this should be automatic, to allow switching between boards easily. */ // LOCAL - What is this? #define WII5_DEVICE_TYPE "WII5WaveBuoy" #define WII5_DEVICE_SUBTYPE "PiperC" #define WII5_SOFTWARE_NAME "WII5_Buoy" // Defaults - change these at build #ifndef WII5_SOFTWARE_VERSION #define WII5_SOFTWARE_VERSION "WII5Buoy_5.5.12" #endif #ifndef WII5_SOFTWARE_COMMIT #define WII5_SOFTWARE_COMMIT "Unknown" #endif #ifndef WII5_SOFTWARE_INTVER // a * 65536 + b * 256 + c // 5 * 65536 + 5 * 256 + 4 = 327680 + 1280 + 4 = 328964 #define WII5_SOFTWARE_INTVER 328972 #endif // 2019-05 - First board build for WII5 // Currently only the WII5 v2 board is supported. Earlier prototypes (v1, // Arduino Mega devboard, Moteino Mega, M5Stick C) lived in this tree but // have been retired; see git history for those headers. #if defined (__WII5_V02__) #include #else #error "WII5 BOARD SELECTION = No board definition (expected __WII5_V02__)" #endif