Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Adding Support for a new Board

Phil Schatzmann edited this page May 25, 2022 · 14 revisions

To define a new board follow these steps:

  1. Get a new free board number for the AudioKitSettings.h and update the Readme.md
  2. Create a new directory in /src/audio_board. I suggest to use the same name like in https://github.com/espressif/esp-adf/tree/master/components/audio_board
  3. Add the missing files: board.c, board.h, board_def.h, board_pins_config.c to the new directory. You can take the original files from espressif as starting point
  4. Compare your copied files with one of the existing AudioKit implementations and apply the necessary changes
    • Wrap the code of the board.c and board_pins_config.c in #if AUDIOKIT_BOARD== your number from step 1 #endif
    • Add additional includes/Replace includes
  5. Add the new logic in src/audio_hal/audiokit_board.h
Clone this wiki locally