mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-18 09:21:43 +10:00
* ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * rename variant and add guard macros * older G3 operational. M7 next. * Split out G3 and M7 to different variants. Completely new PCB design. The G3 stays on 'PRIVATE_HW' * Define button behaviour and use all of the device flash --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: caveman99 <25002+caveman99@users.noreply.github.com> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
32 lines
595 B
C
32 lines
595 B
C
#pragma once
|
|
|
|
#include "concurrency/Periodic.h"
|
|
#include "configuration.h"
|
|
#include <Arduino.h>
|
|
#include <functional>
|
|
|
|
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
|
#include <WiFi.h>
|
|
#endif
|
|
|
|
#if HAS_ETHERNET && defined(USE_WS5500)
|
|
#include <ETHClass2.h>
|
|
#define ETH ETH2
|
|
#endif // HAS_ETHERNET
|
|
|
|
extern bool needReconnect;
|
|
extern concurrency::Periodic *wifiReconnect;
|
|
|
|
/// @return true if wifi is now in use
|
|
bool initWifi();
|
|
|
|
void deinitWifi();
|
|
|
|
bool isWifiAvailable();
|
|
|
|
uint8_t getWifiDisconnectReason();
|
|
|
|
#if defined(USE_WS5500) || defined(USE_CH390D)
|
|
// Startup Ethernet
|
|
bool initEthernet();
|
|
#endif |