From af1c76f9bb1f1d634a6d2bacdbfd1012d84ff42e Mon Sep 17 00:00:00 2001 From: "Konstantin Kirik (snegovick)" Date: Tue, 6 Jan 2026 03:52:38 +0300 Subject: Fixup all drivers to make code compilable --- os/drivers/clock/stm32f769_clocks.h | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'os/drivers/clock/stm32f769_clocks.h') diff --git a/os/drivers/clock/stm32f769_clocks.h b/os/drivers/clock/stm32f769_clocks.h index 038fdb49..4617a9be 100644 --- a/os/drivers/clock/stm32f769_clocks.h +++ b/os/drivers/clock/stm32f769_clocks.h @@ -12,14 +12,27 @@ #define STM32F769_RCC_APB1_SET_OFFSET 0x40U #define STM32F769_RCC_APB2_SET_OFFSET 0x44U -#ddefine STM32F769_CLOCK_TIM6 STM32F769_CLOCK_CONFIG(APB1_SET, 4U) -#ddefine STM32F769_CLOCK_USART1 STM32F769_CLOCK_CONFIG(APB2_SET, 4U) -#ddefine STM32F769_CLOCK_USART2 STM32F769_CLOCK_CONFIG(APB1_SET, 17U) -#ddefine STM32F769_CLOCK_USART3 STM32F769_CLOCK_CONFIG(APB1_SET, 18U) -#ddefine STM32F769_CLOCK_UART4 STM32F769_CLOCK_CONFIG(APB1_SET, 19U) -#ddefine STM32F769_CLOCK_UART5 STM32F769_CLOCK_CONFIG(APB1_SET, 20U) -#ddefine STM32F769_CLOCK_USART6 STM32F769_CLOCK_CONFIG(APB2_SET, 5U) -#ddefine STM32F769_CLOCK_UART7 STM32F769_CLOCK_CONFIG(APB1_SET, 30U) -#ddefine STM32F769_CLOCK_UART8 STM32F769_CLOCK_CONFIG(APB1_SET, 31U) +#define STM32F769_CLOCK_TIM6 STM32F769_CLOCK_CONFIG(APB1_SET, 4U) + +#define STM32F769_CLOCK_USART1 STM32F769_CLOCK_CONFIG(APB2_SET, 4U) +#define STM32F769_CLOCK_USART2 STM32F769_CLOCK_CONFIG(APB1_SET, 17U) +#define STM32F769_CLOCK_USART3 STM32F769_CLOCK_CONFIG(APB1_SET, 18U) +#define STM32F769_CLOCK_UART4 STM32F769_CLOCK_CONFIG(APB1_SET, 19U) +#define STM32F769_CLOCK_UART5 STM32F769_CLOCK_CONFIG(APB1_SET, 20U) +#define STM32F769_CLOCK_USART6 STM32F769_CLOCK_CONFIG(APB2_SET, 5U) +#define STM32F769_CLOCK_UART7 STM32F769_CLOCK_CONFIG(APB1_SET, 30U) +#define STM32F769_CLOCK_UART8 STM32F769_CLOCK_CONFIG(APB1_SET, 31U) + +#define STM32F769_CLOCK_GPIOA STM32F769_CLOCK_CONFIG(AHB1_SET, 0U) +#define STM32F769_CLOCK_GPIOB STM32F769_CLOCK_CONFIG(AHB1_SET, 1U) +#define STM32F769_CLOCK_GPIOC STM32F769_CLOCK_CONFIG(AHB1_SET, 2U) +#define STM32F769_CLOCK_GPIOD STM32F769_CLOCK_CONFIG(AHB1_SET, 3U) +#define STM32F769_CLOCK_GPIOE STM32F769_CLOCK_CONFIG(AHB1_SET, 4U) +#define STM32F769_CLOCK_GPIOF STM32F769_CLOCK_CONFIG(AHB1_SET, 5U) +#define STM32F769_CLOCK_GPIOG STM32F769_CLOCK_CONFIG(AHB1_SET, 6U) +#define STM32F769_CLOCK_GPIOH STM32F769_CLOCK_CONFIG(AHB1_SET, 7U) +#define STM32F769_CLOCK_GPIOI STM32F769_CLOCK_CONFIG(AHB1_SET, 8U) +#define STM32F769_CLOCK_GPIOJ STM32F769_CLOCK_CONFIG(AHB1_SET, 9U) +#define STM32F769_CLOCK_GPIOK STM32F769_CLOCK_CONFIG(AHB1_SET, 10U) #endif /* __DD_STM32F769_CLOCKS_H__ */ -- cgit v1.2.3