blob: 9d3216e87590ba992c782740f4f715e90d8504ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef REG_H
#define REG_H
#define REG32(addr) ((volatile uint32_t *)(uintptr_t)(addr))
#define read32(addr) (*REG32(addr))
#define write32(addr, val) (*REG32(addr) = (val))
#endif
|