2 * Copyright (C) 2023 Espressif Systems (Shanghai) CO LTD
3 * SPDX-License-Identifier: BSD-2-Clause
6 #ifndef REGISTER_ACCESS_H
7 #define REGISTER_ACCESS_H
9 #define WRITE_REGISTER(addr, val) (*((volatile uint32_t *)(addr))) = (uint32_t)(val)
10 #define READ_REGISTER(addr) (*((volatile uint32_t *)(addr)))
12 #endif // REGISTER_ACCESS_H