mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Board bootup time is 1 s for all HW
This commit is contained in:
parent
1bfd331e63
commit
e1b80e0f2a
5 changed files with 1 additions and 6 deletions
|
@ -16,7 +16,7 @@ class Esp32Hal {
|
|||
virtual const char* name() = 0;
|
||||
|
||||
// Time it takes before system is considered fully started up.
|
||||
virtual duration BOOTUP_TIME() = 0;
|
||||
virtual duration BOOTUP_TIME() { return milliseconds(1000); }
|
||||
virtual bool system_booted_up();
|
||||
|
||||
// Core assignment
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
class ThreeLBHal : public Esp32Hal {
|
||||
public:
|
||||
const char* name() { return "3LB board"; }
|
||||
// Board boot-up time
|
||||
duration BOOTUP_TIME() { return milliseconds(1000); }
|
||||
|
||||
virtual gpio_num_t RS485_TX_PIN() { return GPIO_NUM_1; }
|
||||
virtual gpio_num_t RS485_RX_PIN() { return GPIO_NUM_3; }
|
||||
|
|
|
@ -14,7 +14,6 @@ The pin layout below supports the following:
|
|||
class DevKitHal : public Esp32Hal {
|
||||
public:
|
||||
const char* name() { return "ESP32 DevKit V1"; }
|
||||
duration BOOTUP_TIME() { return milliseconds(1000); }
|
||||
|
||||
virtual gpio_num_t RS485_TX_PIN() { return GPIO_NUM_1; }
|
||||
virtual gpio_num_t RS485_RX_PIN() { return GPIO_NUM_3; }
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
class LilyGoHal : public Esp32Hal {
|
||||
public:
|
||||
const char* name() { return "LilyGo T-CAN485"; }
|
||||
duration BOOTUP_TIME() { return milliseconds(1000); }
|
||||
|
||||
virtual gpio_num_t PIN_5V_EN() { return GPIO_NUM_16; }
|
||||
virtual gpio_num_t RS485_EN_PIN() { return GPIO_NUM_17; }
|
||||
|
|
|
@ -20,7 +20,6 @@ GPIOs on extra header
|
|||
class StarkHal : public Esp32Hal {
|
||||
public:
|
||||
const char* name() { return "Stark CMR Module"; }
|
||||
duration BOOTUP_TIME() { return milliseconds(5000); }
|
||||
|
||||
// Not needed, GPIO 16 has hardware pullup for PSRAM compatibility
|
||||
virtual gpio_num_t PIN_5V_EN() { return GPIO_NUM_NC; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue