Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
syscon.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Carlo Caione <ccaione@baylibre.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_
13#define ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_
14
22#include <zephyr/types.h>
23#include <device.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
37
49
61
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_ */
uintptr_t syscon_get_base(void)
Get the syscon base address.
int syscon_write_reg(uint16_t reg, uint32_t val)
Write to syscon register.
int syscon_read_reg(uint16_t reg, uint32_t *val)
Read from syscon register.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59