From b0810c80ada58d40f51f7dd0a7b0ae8e13c2f1e4 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Tue, 20 Feb 2024 23:59:17 -0800 Subject: [PATCH] config: add board specific setup Signed-off-by: Thomas Chou --- firmware/src/firmware.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/src/firmware.ino b/firmware/src/firmware.ino index 3fa80b06..4aad48f5 100644 --- a/firmware/src/firmware.ino +++ b/firmware/src/firmware.ino @@ -134,6 +134,9 @@ void setup() { pinMode(LED_PIN, OUTPUT); Serial.begin(BAUDRATE); +#ifdef BOARD_INIT // board specific setup + BOARD_INIT +#endif initWifis(); initOta(); @@ -153,6 +156,9 @@ void setup() set_microros_net_transports(AGENT_IP, AGENT_PORT); #else set_microros_serial_transports(Serial); +#endif +#ifdef BOARD_INIT_LATE // board specific setup + BOARD_INIT_LATE #endif syslog(LOG_INFO, "%s Ready %lu", __FUNCTION__, millis()); }