 |
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef _INCLUDE_ZEPHYR_DT_BINDINGS_CLOCK_SF32LB_CLOCKS_COMMON_H_
8#define _INCLUDE_ZEPHYR_DT_BINDINGS_CLOCK_SF32LB_CLOCKS_COMMON_H_
12#define SF32LB_CLOCK_OFFSET_POS 0U
13#define SF32LB_CLOCK_OFFSET_MSK 0xFFU
14#define SF32LB_CLOCK_BIT_POS 8U
15#define SF32LB_CLOCK_BIT_MSK 0x1F00U
30#define SF32LB_CLOCK_CONFIG(offset, bit) \
31 ((((offset) << SF32LB_CLOCK_OFFSET_POS) & SF32LB_CLOCK_OFFSET_MSK) | \
32 (((bit) << SF32LB_CLOCK_BIT_POS) & SF32LB_CLOCK_BIT_MSK))