Skip to content

Commit

Permalink
config: add board specific setup
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
  • Loading branch information
hippo5329 committed Feb 21, 2024
1 parent cbe3a80 commit b0810c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/src/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ void setup()
{
pinMode(LED_PIN, OUTPUT);
Serial.begin(BAUDRATE);
#ifdef BOARD_INIT // board specific setup
BOARD_INIT
#endif
initWifis();
initOta();

Expand All @@ -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());
}
Expand Down

0 comments on commit b0810c8

Please sign in to comment.