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:
Alexis Guijarro
2026-05-19 13:13:54 -05:00
committed by GitHub
parent 7a9642fe75
commit c59f208cc7
34 changed files with 3023 additions and 0 deletions

View File

@@ -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();

View File

@@ -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)