Skip to content

Commit

Permalink
boards: add ark fpv and pi6x BOARD_DMA_NUM_DSHOT_CHANNELS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimaj committed Nov 26, 2024
1 parent fdb94f9 commit ee3f724
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions boards/ark/fpv/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@
/* This board provides a DMA pool and APIs */
#define BOARD_DMA_ALLOC_POOL_SIZE 5120

/* This board has 3 DMA channels available for bidirectional dshot */
#define BOARD_DMA_NUM_DSHOT_CHANNELS 3

/* This board provides the board_on_reset interface */

#define BOARD_HAS_ON_RESET 1
Expand Down
2 changes: 1 addition & 1 deletion boards/ark/fpv/src/timer_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
constexpr io_timers_t io_timers[MAX_IO_TIMERS] = {
initIOTimer(Timer::Timer5, DMA{DMA::Index1}),
initIOTimer(Timer::Timer8, DMA{DMA::Index1}),
initIOTimer(Timer::Timer4, DMA{DMA::Index1}),
initIOTimer(Timer::Timer4),
};

constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
Expand Down
3 changes: 3 additions & 0 deletions boards/ark/pi6x/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@
/* This board provides a DMA pool and APIs */
#define BOARD_DMA_ALLOC_POOL_SIZE 5120

/* This board has 4 DMA channels available for bidirectional dshot */
#define BOARD_DMA_NUM_DSHOT_CHANNELS 4

/* This board provides the board_on_reset interface */

#define BOARD_HAS_ON_RESET 1
Expand Down

0 comments on commit ee3f724

Please sign in to comment.