OpenOCD
aice_pipe.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2013 by Andes Technology *
5  * Hsiangkai Wang <hkwang@andestech.com> *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_JTAG_AICE_AICE_PIPE_H
9 #define OPENOCD_JTAG_AICE_AICE_PIPE_H
10 
11 #include <helper/types.h>
12 
13 #define set_u32(buffer, value) h_u32_to_le((uint8_t *)buffer, value)
14 #define set_u16(buffer, value) h_u16_to_le((uint8_t *)buffer, value)
15 #define get_u32(buffer) le_to_h_u32((const uint8_t *)buffer)
16 #define get_u16(buffer) le_to_h_u16((const uint8_t *)buffer)
17 
18 extern struct aice_port_api_s aice_pipe;
19 
20 #endif /* OPENOCD_JTAG_AICE_AICE_PIPE_H */
struct aice_port_api_s aice_pipe
Definition: aice_pipe.c:829