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 <[email protected]>
  • Loading branch information
hippo5329 committed Feb 21, 2024
1 parent f442d64 commit 0f98caf
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 @@ -145,6 +145,9 @@ void setup()
Wire.begin();
#endif
Wire.setClock(400000);
#ifdef BOARD_INIT // board specific setup
BOARD_INIT
#endif
initWifis();
initOta();

Expand All @@ -163,6 +166,9 @@ void setup()
#else
set_microros_serial_transports(Serial);
#endif
#ifdef BOARD_INIT_LATE // board specific setup
BOARD_INIT_LATE
#endif
}

void loop() {
Expand Down

0 comments on commit 0f98caf

Please sign in to comment.