// 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 WII5Setup.h * @brief Boot-time hardware bring-up: pin defaults, peripherals, and serial ports. */ #ifndef WII5Setup_h #define WII5Setup_h #include #include #include class WII5Setup : public WII5 { public: virtual WII5_CONTROLLERS controllerId() {return WII5CONTROLLER_SETUP;} void begin(); void beginSafe(); void bootbeep(); void shutdownbeep(); void setupPower(); void setupConsole(); void setupNetwork(); void setupIO(); void setupWII5(); void sleepBefore(bool mathsOn = false); void sleepAfter(); protected: bool _setupPower; bool _setupIO; bool _setupWII5; bool _setupConsole; bool _setupNetwork; }; extern WII5Setup wii5Setup; #endif