STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1#pragma once
2
3//-----------------------------------------------------------------------------
4// Timing and timeouts (all in milliseconds)
5//-----------------------------------------------------------------------------
6#define BOARD_HEARTBEAT_INTERVAL_MS \
7 1000 // Send board heartbeat once per second
8#define LOOP_DELAY_MS 10 // Delay at end of each loop()
9#define ETHERNET_SPI_DELAY_MS 1000 // Delay after SPI.begin() for Ethernet
10#define ETHERNET_INIT_DELAY_MS 1000 // Delay after Ethernet.init()
11#define ETHERNET_BEGIN_DELAY_MS 1000 // Delay after Ethernet.begin()
12
13//-----------------------------------------------------------------------------
14// Board identity (SPIFFS)
15//-----------------------------------------------------------------------------
16#define SPIFFS_BOARD_VALUE_PATH "/value.bin"
17#define BOARD_ID_DEFAULT 1