HAL_ChibiOS: fixed GPIO init for H7

This commit is contained in:
Andrew Tridgell 2019-02-07 12:56:36 +11:00
parent 9013c15f4d
commit de335f14d7
2 changed files with 7 additions and 2 deletions

View File

@ -169,8 +169,13 @@ static void stm32_gpio_init(void) {
/* Enabling GPIO-related clocks, the mask comes from the
registry header file.*/
#if defined(STM32H7)
rccResetAHB4(STM32_GPIO_EN_MASK);
rccEnableAHB4(STM32_GPIO_EN_MASK, true);
#else
rccResetAHB1(STM32_GPIO_EN_MASK);
rccEnableAHB1(STM32_GPIO_EN_MASK, true);
#endif
/* Initializing all the defined GPIO ports.*/
#if STM32_HAS_GPIOA

View File

@ -37,8 +37,8 @@ pincount = {
'G': 16,
'H': 16,
'I': 16,
'J': 0,
'K': 0
'J': 16,
'K': 16
}
# no DMA map as we will dynamically allocate DMA channels using the DMAMUX