Skip to content

Commit

Permalink
HAL_ChibiOS: fixed I2C4 on STM32G4
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 3, 2024
1 parent 4f327e4 commit 79cd2b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/dma_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def can_share(periph, noshare_list):
return False


# list of peripherals on H7 that are on DMAMUX2 and BDMA
# list of peripherals that are on DMAMUX2 and BDMA
have_DMAMUX = False
DMAMUX2_peripherals = [ 'I2C4', 'SPI6', 'ADC3' ]
DMAMUX2_peripherals = []

def dmamux_channel(key):
'''return DMAMUX channel for H7'''
Expand Down Expand Up @@ -298,6 +298,10 @@ def write_dma_header(f, peripheral_list, mcu_type, dma_exclude=[],
global dma_map, have_DMAMUX, has_bdshot
timer_ch_periph = []

if mcu_type.startswith('STM32H7'):
global DMAMUX2_peripherals
DMAMUX2_peripherals = [ 'I2C4', 'SPI6', 'ADC3' ]

has_bdshot = False

# form a list of DMA priorities
Expand Down

0 comments on commit 79cd2b8

Please sign in to comment.