Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32_clock.h File Reference

Go to the source code of this file.

Macros

#define STM32_CLOCK_BUS_AHB1   0
 
#define STM32_CLOCK_BUS_AHB2   1
 
#define STM32_CLOCK_BUS_APB1   2
 
#define STM32_CLOCK_BUS_APB2   3
 
#define STM32_CLOCK_BUS_APB1_2   4
 
#define STM32_CLOCK_BUS_IOP   5
 
#define STM32_CLOCK_BUS_AHB3   6
 
#define STM32_CLOCK_BUS_AHB4   7
 
#define STM32_CLOCK_BUS_AHB5   8
 
#define STM32_CLOCK_BUS_AHB6   9
 
#define STM32_CLOCK_BUS_APB3   10
 
#define STM32_CLOCK_BUS_APB4   11
 
#define STM32_CLOCK_BUS_APB5   12
 
#define STM32_CLOCK_BUS_AXI   13
 
#define STM32_CLOCK_BUS_MLAHB   14
 
#define STM32_CLOCK_DIV_SHIFT   12
 
#define STM32_CLOCK_DIV(div)
 Clock divider.
 

Macro Definition Documentation

◆ STM32_CLOCK_BUS_AHB1

#define STM32_CLOCK_BUS_AHB1   0

◆ STM32_CLOCK_BUS_AHB2

#define STM32_CLOCK_BUS_AHB2   1

◆ STM32_CLOCK_BUS_AHB3

#define STM32_CLOCK_BUS_AHB3   6

◆ STM32_CLOCK_BUS_AHB4

#define STM32_CLOCK_BUS_AHB4   7

◆ STM32_CLOCK_BUS_AHB5

#define STM32_CLOCK_BUS_AHB5   8

◆ STM32_CLOCK_BUS_AHB6

#define STM32_CLOCK_BUS_AHB6   9

◆ STM32_CLOCK_BUS_APB1

#define STM32_CLOCK_BUS_APB1   2

◆ STM32_CLOCK_BUS_APB1_2

#define STM32_CLOCK_BUS_APB1_2   4

◆ STM32_CLOCK_BUS_APB2

#define STM32_CLOCK_BUS_APB2   3

◆ STM32_CLOCK_BUS_APB3

#define STM32_CLOCK_BUS_APB3   10

◆ STM32_CLOCK_BUS_APB4

#define STM32_CLOCK_BUS_APB4   11

◆ STM32_CLOCK_BUS_APB5

#define STM32_CLOCK_BUS_APB5   12

◆ STM32_CLOCK_BUS_AXI

#define STM32_CLOCK_BUS_AXI   13

◆ STM32_CLOCK_BUS_IOP

#define STM32_CLOCK_BUS_IOP   5

◆ STM32_CLOCK_BUS_MLAHB

#define STM32_CLOCK_BUS_MLAHB   14

◆ STM32_CLOCK_DIV

#define STM32_CLOCK_DIV ( div)
Value:
(((div) - 1) << STM32_CLOCK_DIV_SHIFT)
#define STM32_CLOCK_DIV_SHIFT
Definition stm32_clock.h:26

Clock divider.

◆ STM32_CLOCK_DIV_SHIFT

#define STM32_CLOCK_DIV_SHIFT   12