Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
clock_control_silabs.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Silicon Laboratories Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_SILABS_H_
8#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_SILABS_H_
9
11
12#if defined(CONFIG_SOC_SERIES_EFR32MG21)
14#elif defined(CONFIG_SOC_SERIES_EFR32BG22)
16#elif defined(CONFIG_SOC_SERIES_EFR32ZG23)
18#elif defined(CONFIG_SOC_SERIES_EFR32MG24)
20#elif defined(CONFIG_SOC_SERIES_EFR32BG27)
22#endif
23
28
29#define SILABS_DT_CLOCK_CFG(node_id) \
30 { \
31 .bus_clock = DT_CLOCKS_CELL(node_id, enable), \
32 .branch = DT_CLOCKS_CELL(node_id, branch), \
33 }
34
35#define SILABS_DT_INST_CLOCK_CFG(inst) \
36 { \
37 .bus_clock = DT_INST_CLOCKS_CELL(inst, enable), \
38 .branch = DT_INST_CLOCKS_CELL(inst, branch), \
39 }
40
41#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_SILABS_H_ */
Public Clock Control APIs.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Definition clock_control_silabs.h:24
uint32_t bus_clock
Definition clock_control_silabs.h:25
uint8_t branch
Definition clock_control_silabs.h:26