mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-26 16:28:06 +08:00
feat(boards): add support for 3DR Control N1 flight controller (#27395)
* fix(srgbled_dma): stm32_dmasetup now works with H7 boards * feat(drivers/ak09940a): add AKM AK09940A magnetometer driver * feat(boards/3dr/ctrl-n1)!: add 3DR Control-N1 flight controller * fix(boards/3dr/ctrl-n1): macro replacement list is now enclosed in parentheses * fix(boards/3dr/ctrl-n1): applying copyright changes * fix(boards/3dr/ctrl-n1): removing serial console
This commit is contained in:
@@ -374,11 +374,22 @@ extern int neopixel_write(neopixel::NeoLEDData *led_data, int number_of_packages
|
||||
|
||||
// Set up the DMA Operations
|
||||
|
||||
#if defined(CONFIG_ARCH_CHIP_STM32H7)
|
||||
struct stm32_dma_config_s dma_cfg;
|
||||
dma_cfg.paddr = _TIM_REG(STM32_GTIM_DMAR_OFFSET);
|
||||
dma_cfg.maddr = (uint32_t) bits;
|
||||
dma_cfg.cfg1 = SLED_DMA_SCR;
|
||||
dma_cfg.cfg2 = 0;
|
||||
dma_cfg.ndata = arraySize(bits);
|
||||
stm32_dmasetup(dma_handle, &dma_cfg);
|
||||
#else
|
||||
stm32_dmasetup(dma_handle,
|
||||
_TIM_REG(STM32_GTIM_DMAR_OFFSET),
|
||||
(uint32_t) bits,
|
||||
arraySize(bits),
|
||||
SLED_DMA_SCR);
|
||||
#endif
|
||||
|
||||
|
||||
// atomic operations
|
||||
irqstate_t flags = px4_enter_critical_section();
|
||||
|
||||
@@ -39,6 +39,7 @@ add_subdirectory(../stm32_common/board_reset board_reset)
|
||||
add_subdirectory(../stm32_common/dshot dshot)
|
||||
add_subdirectory(../stm32_common/hrt hrt)
|
||||
add_subdirectory(../stm32_common/led_pwm led_pwm)
|
||||
add_subdirectory(../stm32_common/srgbled_dma srgbled_dma)
|
||||
add_subdirectory(../stm32_common/io_pins io_pins)
|
||||
add_subdirectory(../stm32_common/spi spi)
|
||||
add_subdirectory(../stm32_common/tone_alarm tone_alarm)
|
||||
|
||||
Reference in New Issue
Block a user