Cygwin: pinfo: raise MAX_PID to 4194304
[newlib-cygwin.git] / libgloss / xtensa / include / register_access.h
blob517220481de0ac9bc37e3eb97f5c5d0797c80f38
1 /*
2 * Copyright (C) 2023 Espressif Systems (Shanghai) CO LTD
3 * SPDX-License-Identifier: BSD-2-Clause
4 */
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